Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtAndroid local notifications , notifications poping up immediately

QtAndroid local notifications , notifications poping up immediately

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
jniandroidqt5.5java jnijava
2 Posts 2 Posters 951 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qjay
    wrote on 21 Oct 2018, 14:57 last edited by
    #1

    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

    R 1 Reply Last reply 21 Oct 2018, 15:31
    0
    • Q Qjay
      21 Oct 2018, 14:57

      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

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 21 Oct 2018, 15:31 last edited by raven-worx
      #2

      @Qjay said in QtAndroid local notifications , notifications poping up immediately:

      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.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1

      2/2

      21 Oct 2018, 15:31

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved