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.
Local Notification Event
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 87
- Joined: Tue Nov 13, 2007 6:40 pm
Re: Local Notification Event
Additional Information.
I'm using LiveCode V6.1.0 with Android SDK V22.0.4
I've attached a simple stack that creates a notification on Android that can be used to verify the situation.
The app has three pages and the localNotificationReceived message is handled in the stack script.
If the application is IDLE, either in the background or the phone screen times out and goes dark, it doesn't get the "localNotificationReceived" message until it is restarted.
Does anyone have any thoughts on how I can determine where the message is getting blocked or how I can view the messages?
Is this a BUG or is this how it is intended to work?
Thanks for the help.
I'm using LiveCode V6.1.0 with Android SDK V22.0.4
I've attached a simple stack that creates a notification on Android that can be used to verify the situation.
The app has three pages and the localNotificationReceived message is handled in the stack script.
If the application is IDLE, either in the background or the phone screen times out and goes dark, it doesn't get the "localNotificationReceived" message until it is restarted.
Does anyone have any thoughts on how I can determine where the message is getting blocked or how I can view the messages?
Is this a BUG or is this how it is intended to work?
Thanks for the help.
- Attachments
-
- NotifyTestBed.zip
- (6.54 KiB) Downloaded 294 times
-
- Posts: 83
- Joined: Mon Oct 31, 2011 5:28 am
Re: Local Notification Event
I'm interested to hear the answer to this as my IOS app I'm about to port makes heavy use of local notifications.
-
- Posts: 87
- Joined: Tue Nov 13, 2007 6:40 pm
Re: Local Notification Event
Wanted to update this post. I worked with Support and they confirmed that this is a defect. The bug report Number 11154 was created and is in the PENDING status.
This issue makes notification on Android unusable, so we need to wait for the fix. Don't know if RunRev has a method to prioritize defects.
I will update when I get a notice that this has been resolved.
This issue makes notification on Android unusable, so we need to wait for the fix. Don't know if RunRev has a method to prioritize defects.
I will update when I get a notice that this has been resolved.