benCoding.AlarmManager
benCoding.AlarmManager copied to clipboard
When API >= 26 you have to use NotificationChannel
When API >= 26 you have to use NotificationChannel otherwise notifications don't work anymore. This pull request adds NotificationChannel support and makes notifications work again. Other small changes:
- Small improvement with repeated notifications
- Update documentation
I think people are going to run into this more now that Google is starting to require min api 26. Previous version of the module will fail silently.
Yes I have experiences. I have build an other module with PN, Next days I will look into.
Maybe TaskScheduler is a better idea for starting processes later. http://www.vogella.com/tutorials/AndroidTaskScheduling/article.html
Thanks @michielvaneerd your PR works fine, but I've an issue: when I click on the notification icon, the app shows this alert dialog:
Restart Required An application restart is required
CONTINUE
and the app don't restart anymore
@Astrovic For me it's working. If you can share the code for a runnable example I can have a look.
@michielvaneerd I solved by adding this property on tiapp.xml
:
<property name="ti.android.bug2373.finishfalseroot" type="bool">true</property>
Is someone merging this?
https://github.com/michielvaneerd/benCoding.AlarmManager/blob/master/dist/bencoding.alarmmanager-android-2.0.0.zip
thanks for sharing @Astrovic and @michielvaneerd , maybe someone could have the official github repo and make it the upstream version later?