system.cancelNotification() Does not work on Android

It looks like system.cancelNotification() does not work correctly on Android.

The remote notifications in the notification bar are not cleared. I’ve tried everything I can think of.

That is odd since the documentation on that Corona function sounds like it would be using NotificationManager.cancelAll() from the Android API. It must be playing it safer by only cancelling notifications that it created.

I don’t think we could get the Corona function to clear our remote notifications however I believe we could add a function to GameThrive that would cancel all notifications from the whole app. We could add this in the next updated, would that work for you?

Thanks.

Yes that would be great, I got a few complaints. 

Thank you.

We have an update planned for the beginning of next week. I’ll post again when it has been pushed.

Thanks.

Thank you, really appreciate it!

We just added GameThrive.ClearAllNotifications(). Use it in place of system.cancelNotification() on Android and iOS to clear all notifications both remote and local.

Thanks.

Thank you very much. Tried it and all OK.

That is odd since the documentation on that Corona function sounds like it would be using NotificationManager.cancelAll() from the Android API. It must be playing it safer by only cancelling notifications that it created.

I don’t think we could get the Corona function to clear our remote notifications however I believe we could add a function to GameThrive that would cancel all notifications from the whole app. We could add this in the next updated, would that work for you?

Thanks.

Yes that would be great, I got a few complaints. 

Thank you.

We have an update planned for the beginning of next week. I’ll post again when it has been pushed.

Thanks.

Thank you, really appreciate it!

We just added GameThrive.ClearAllNotifications(). Use it in place of system.cancelNotification() on Android and iOS to clear all notifications both remote and local.

Thanks.

Thank you very much. Tried it and all OK.

For some reason, the ClearAllNotifications() function does not clear my notifications in iOS (it works in Android including Kindle Fire).

Is anything there broken?

Stanga, can you let us know which build number of Corona you are using and which version of iOS your testing on?

Also do you see any errors in the Xcode device log when this gets called in your code?

Thanks.

I am using the Corona build 2015.2689 (2015.7.24) and iOS version 8.3. 

This was on a user’s phone, so I can’t see the Xcode logs…

Hello stanga,

We just deployed a fix for ClearAllNotifications for iOS devices as version 1.10.9 of our OneSIgnal Corona plugin. This version is only available on Corona build 2720 and newer.

Thanks.

For some reason, the ClearAllNotifications() function does not clear my notifications in iOS (it works in Android including Kindle Fire).

Is anything there broken?

Stanga, can you let us know which build number of Corona you are using and which version of iOS your testing on?

Also do you see any errors in the Xcode device log when this gets called in your code?

Thanks.

I am using the Corona build 2015.2689 (2015.7.24) and iOS version 8.3. 

This was on a user’s phone, so I can’t see the Xcode logs…