Can corona perform a on going notification, ongoing meaning you cannot swipe the notification on the notification lists, unless you literally os.exit() the app.
iOS controls the behavior. Apple also does not like apps to use os.exit().
Can you be more specific about what your end goals are?
Rob
The Notification cannot be removed by swiping left or right. Unless you do something within the app to make it removed.
Are you talking iOS or Android?
Both
In iOS, the OS managed the notifications. There is no way for the app itself to dismiss items from the control center. When you swipe a notification away, iOS will launch your app. If it’s a cold start, you will get a launchArgs with the event information in it. If your app is in memory, but suspended, your app will be resumed/foregrounded and then you will get a notification event with the information in it. If your app is already in the foreground, you will get the notification event. If you launch yourself, without interacting with the push notification in control center, your app will start, not be notified of the event and the notification stats in the center until it’s cleared or interacted with.
Android is the same behavior except that the apps is responsible for actually handling the notifications. We have taken care of all that handling so that Android behaves the same as iOS with regards to your app’s responsibilities and expectations.
Rob
But with this info, can I make my notification not disappear from the notification area of the device once I click on it?
Can you describe the problem and what you are seeing in your native language?
Rob
I don’t have any problems at all, I’m just wondering If a notification can be on-going, it cannot be removed even if you clicked on it. in android you cannot swipe it either to the left or right.
My goal is I want to make an alarm clock app, since corona doesn’t support foreground/background running app(app is not active) I wanted to make my notification to be persistent, so I can force my user to click on it to reset my local notification automatically.
When the notification is activated, you would set the next one behind the scenes. Or you can set multiple notifications at certain intervals. There is no concept of notifications that just stay there outside of Apple or Google’s control.
Rob
iOS controls the behavior. Apple also does not like apps to use os.exit().
Can you be more specific about what your end goals are?
Rob
The Notification cannot be removed by swiping left or right. Unless you do something within the app to make it removed.
Are you talking iOS or Android?
Both
In iOS, the OS managed the notifications. There is no way for the app itself to dismiss items from the control center. When you swipe a notification away, iOS will launch your app. If it’s a cold start, you will get a launchArgs with the event information in it. If your app is in memory, but suspended, your app will be resumed/foregrounded and then you will get a notification event with the information in it. If your app is already in the foreground, you will get the notification event. If you launch yourself, without interacting with the push notification in control center, your app will start, not be notified of the event and the notification stats in the center until it’s cleared or interacted with.
Android is the same behavior except that the apps is responsible for actually handling the notifications. We have taken care of all that handling so that Android behaves the same as iOS with regards to your app’s responsibilities and expectations.
Rob
But with this info, can I make my notification not disappear from the notification area of the device once I click on it?
Can you describe the problem and what you are seeing in your native language?
Rob
I don’t have any problems at all, I’m just wondering If a notification can be on-going, it cannot be removed even if you clicked on it. in android you cannot swipe it either to the left or right.
My goal is I want to make an alarm clock app, since corona doesn’t support foreground/background running app(app is not active) I wanted to make my notification to be persistent, so I can force my user to click on it to reset my local notification automatically.
When the notification is activated, you would set the next one behind the scenes. Or you can set multiple notifications at certain intervals. There is no concept of notifications that just stay there outside of Apple or Google’s control.
Rob