distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Local Notifications not starting app when app is not running (but do when app in background) #316

Closed andytwoods closed 9 years ago

andytwoods commented 9 years ago

Hi, delayed notifications stop working when I: NativeApplication.nativeApplication.exit();

but work fine if I leave the app running in the background. I've read through this thread http://distriqt.uservoice.com/forums/199650-general/suggestions/5518142-local-notifications-ane . Fairly sure this is correct as I get notifications when app is running in the background:

                <receiver android:name="com.distriqt.extension.notifications.NotificationsReceiver">
                    <intent-filter>
                        <action android:name="air.mobi.xperiment.NOTIFICATION" />
                        <action android:name="air.mobi.xperiment.DELAYED_NOTIFICATION" />
                    </intent-filter>
                 </receiver>

Using Air 14. FB 4.7.

Would appreciate help. thanks, Andy.

andytwoods commented 9 years ago

https://github.com/distriqt/airnativeextensions/issues/172

good idea regarding 'debug' being appended to app id. Trying.

---no luck afraid.Tried with switching off 'debug' appending, and also changing my xml to the below

                <receiver android:name="com.distriqt.extension.notifications.NotificationsReceiver">
                    <intent-filter>
                        <action android:name="air.debug.mobi.xperiment.NOTIFICATION" />
                        <action android:name="air.debug.mobi.xperiment.DELAYED_NOTIFICATION" />
                    </intent-filter>
                 </receiver>

---but the below works!! :)

            <receiver android:name="com.distriqt.extension.notifications.NotificationsReceiver">
                    <intent-filter>
                        <action android:name="air.mobi.xperiment.debug.NOTIFICATION" />
                        <action android:name="air.mobi.xperiment.debug.DELAYED_NOTIFICATION" />
                    </intent-filter>
                 </receiver>