Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Push Notifications do not respect priority #17

Closed
aurusapps opened this issue Jan 26, 2017 · 7 comments
Closed

Android Push Notifications do not respect priority #17

aurusapps opened this issue Jan 26, 2017 · 7 comments

Comments

@aurusapps
Copy link
Contributor

I wondered how notifications from some apps draw over a screen and you can read them where as all other notifications only appear as an icon on the status bar.

In my research I found that the priority of the notifications controls this and only priority 10 messages will be shown with a sliding view over other apps or even while on the OS main screen.

However the current module does not support these notifications and do not respect the priority sent. On futher research, I was to realise that Onesignal implemented priority in a later release of their SDK than the one in use in this module.

This issue is therefore a request to use the latest SDK found here:
https://github.com/OneSignal/OneSignal-Android-SDK/blob/b68d7004aaa868b3bdf25b64e4dc5feffcf19d0c/OneSignalSDK.jar

The good news is I have replaced the SDK and tested the priority to be working by simply replace this file and rebuilding the module.

@chmiiller
Copy link
Collaborator

Nice! Can you do a PR?

@aurusapps
Copy link
Contributor Author

@chmiiller Ok im still learning Github at the moment but Ill create a fork, make my changes and submit a PR include both the SDK upgrade and my implementation of getTags for Android. Ill do this after I make changes on your current version ie. 1.3.1

@chmiiller
Copy link
Collaborator

chmiiller commented Jan 26, 2017

Ok, I can help you on that if you want.
Basically:

  1. Fork the repo
  2. Clone it on your computer
  3. Do your changes
  4. Commit your changes
  5. Push your commit(s)
  6. Open your github forked repo on github website
  7. Click on "Pull Requests" on top menu
  8. Select "New Pull Request"
  9. Wait till Travis check your commit and William have a look at it

BTW, also updated iOS framework on 1.3.1

@aurusapps
Copy link
Contributor Author

@chmiiller

Thanks and understood, will follow these steps.

Awesome on the iOS Framework upgrade, left a comment on your commit :) really hoping it fixes #13 automatically

@williamrijksen
Copy link
Owner

@aurusapps @chmiiller JAR updated in 1.4.0. Would you verify it's fixed now?

@chmiiller
Copy link
Collaborator

hey @aurusapps can you check this one and if it is working close this issue?

@aurusapps
Copy link
Contributor Author

working correctly, have tested the following:

  • new device registers
  • settags
  • deletetags
  • received and opened handlers of notifications

priority 10 messages working with slide down and draw on other apps

Its working well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants