Local Notification Event
Posted: Thu Aug 29, 2013 8:26 pm
I have an Android app that I'm using the mobileCreateLocalNotification functionality to set events in the future.
The function is working just fine.
Howerver, the challenge I'm having is that I want the user to be taken to a specific part of the app based on the event.
Here are the cases.
1> Application is running. App receives the localNotificationReceived message and can be processed. Works great
2> Application is stopped. When user selects the notification the app is started it receives the localNotificationReceived message.
3> Application is in memory but not running user hits HOME button. When you select the notification it starts the application right where the user left it. The application does not receive the localNotificationReceived message until the application is stopped and restarted. No message received, user cannot be re-directed based on event.
My understanding is that in Android, when the user selects HOME and starts any other apps, the LiveCode app stays in memory until that memory is needed. When the app is re-selected, it is exactly where the user left it.
Is there any message that is sent to the LiveCode App when it has now become the active app?
Is there a way to check if there is a localNotificationReceived message in the queue when ever the application is re-selected?
Is there a way to close the stack when the user selects HOME?
I expect others have run into this same issue, but cannot find another post on the forum.
Thanks for the help.
The function is working just fine.
Howerver, the challenge I'm having is that I want the user to be taken to a specific part of the app based on the event.
Here are the cases.
1> Application is running. App receives the localNotificationReceived message and can be processed. Works great
2> Application is stopped. When user selects the notification the app is started it receives the localNotificationReceived message.
3> Application is in memory but not running user hits HOME button. When you select the notification it starts the application right where the user left it. The application does not receive the localNotificationReceived message until the application is stopped and restarted. No message received, user cannot be re-directed based on event.
My understanding is that in Android, when the user selects HOME and starts any other apps, the LiveCode app stays in memory until that memory is needed. When the app is re-selected, it is exactly where the user left it.
Is there any message that is sent to the LiveCode App when it has now become the active app?
Is there a way to check if there is a localNotificationReceived message in the queue when ever the application is re-selected?
Is there a way to close the stack when the user selects HOME?
I expect others have run into this same issue, but cannot find another post on the forum.
Thanks for the help.