Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

work service after reboot device android

$
0
0

Hi every one now i have a problem can't find the solution for it now i had make android background service and it works fine but when i close the mobile device and open it again the notifications stops and i should open the application to works again I know the answer that we need the permission to put it android mainfiset but i can't know that permission can any one help me ...

var bc = Ti.Android.createBroadcastReceiver({
    onReceived: function() {
        Ti.API.info('Handling broadcast.');
    }
});
 
Ti.Android.registerBroadcastReceiver(bc, [Ti.Android.ACTION_BOOT_COMPLETED]);
~~
tiapp
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"></uses-permission> ~~~

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>