Red-Folder / bgs-core

Core code for the Cordova Background Service
Other
236 stars 105 forks source link

How to enable boot start ? #88

Closed RizkaOMG closed 6 years ago

RizkaOMG commented 6 years ago

I just put some code in androidmanifest.xml to enable boot start but boot start always false. Or i must input some class to call boot start?

        <receiver android:name=".BootReciever">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>
        <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

This code i used to enable boot start. Is it false ? And how to registerForBootStart Please help me to solve this problem Thanks