QtAndroid local notifications , notifications poping up immediately
Hello , i am trying to create local notifications for android. So far i am able to get the notifications ( but not on Android O ) . the notifications are popping up almost instantly ( despite me providing time for it ).
Also i need help with scheduling multiple notifications . Like ( 2 notifications , 1 at 3:00 PM another at 4:00 PM , something like that )
Here is the github repo : https://github.com/hackertron/jni
the notifications are popping up almost instantly ( despite me providing time for it ).
you pass the time you want it to be triggered from now on. The API expects a time since EPOCH (as your comment in the code also states) which are the milliseconds from 1970/01/01 on.
So in your JAVA code add
new Date().getTime()milliseconds to your current timeout.
So far i am able to get the notifications ( but not on Android O )
did you read this already?
Alos chekc the Qt debugger console and/or LogCat for suspicious messages regarding notifications.