platypush/plugins/mobile/join/__init__.py
def launch_app(self, device, name: str = None, package: str = None):
        """
        Launch an app on a device

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param name: Application name
        :param package: Alternatively to the application name, you can also specify the application
            package name. You can check the package name for an app by going to its Google Play page and checking
            the end of the URL. Example: for YouTube this is the URL
            (https://play.google.com/store/apps/details?id=com.google.android.youtube) and this is the package name
            (com.google.android.youtube)
        """

        assert (name or package) and not (name and package)

        params = {}
        if name:
            params['app'] = name
        else:
            params['appPackage'] = package

        return self._send_request(self._push_url, device=device, params=params)

        Launch an app on a device

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param name: Application name
        :param package: Alternatively to the application name, you can also specify the application
            package name. You can check the package name for an app by going to its Google Play page and checking
            the end of the URL. Example: for YouTube this is the URL
            (https://play.google.com/store/apps/details?id=com.google.android.youtube) and this is the package name
            (com.google.android.youtube)
        
Launch an app on a device
Launch an app on a device
def launch_app(self, device, name: str = None, package: str = None):
        assert (name or package) and not (name and package)
        params = {}
        if name:
            params['app'] = name
        else:
            params['appPackage'] = package
        return self._send_request(self._push_url, device=device, params=params)
def launch_app ( self , device , name : str = None , package : str = None ) : assert ( name or package ) and not ( name and package ) params = { } if name : params [ 'app' ] = name else : params [ 'appPackage' ] = package return self . _send_request ( self . _push_url , device = device , params = params )
Launch an app on a device
Launch an app on a device
"""
        Launch an app on a device

        :param device: Device ID or name, or list of device IDs/names, or group name(s)
        :param name: Application name
        :param package: Alternatively to the application name, you can also specify the application
            package name. You can check the package name for an app by going to its Google Play page and checking
            the end of the URL. Example: for YouTube this is the URL
            (https://play.google.com/store/apps/details?id=com.google.android.youtube) and this is the package name
            (com.google.android.youtube)
        """
self
device
Device ID or name, or list of device IDs/names, or group name(s)
Device ID or name or list of device IDs / names or group name ( s )
name
str
None
package
str
Alternatively to the application name, you can also specify the application
package name. You can check the package name for an app by going to its Google Play page and checking
the end of the URL. Example: for YouTube this is the URL
and this is the package name
(com.google.android.youtube)
Alternatively to the application name you can also specify the application package name . You can check the package name for an app by going to its Google Play page and checking the end of the URL . Example : for YouTube this is the URL and this is the package name ( com . google . android . youtube )