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
Allowed to send extra parameters and added ability to send hidden messages. #266
Conversation
…e not parsed at least on Android side the root.
Replace tab by spaces.
can you show us an example how to use it for android please ? |
The same like for iOS
|
well i made all the changes you made in 4 files , and than executed the code you gave me: OneSignal.postNotification({ en: 'Message' }, { prop1: '1', prop2: 5 }, playerId, { priority: 10 }); but still not working for android ... have you tested this ? |
@controversialUser of course, it was required for our project app. Our team tested it a lot during the last week. What exactly doesn't work for you? If you mean new
|
well when my app is open in android and i get a notification , an alert comes to the screen ... i dont want that alert , in ios is ok , but what can i do in android to prevent that alert ... have your team found a solution ? |
@controversialUser I guess you mean It is not related to new changes. |
@controversialUser to be clear; are you adding
@avishayil looking forward to this getting merged! 🙂 |
@jamieparkinson "hidden: true" helped me , thanks a lot ... @bitsal you are a hero bro , thanks for all :) |
This PR do the job, could you please merge it! |
Is anybody going to review it? I wonder why it is in review status so long. 9 days from the last comment |
Good job, waiting for it to be merged ! 👍 |
@avishayil This looks good to me. Could you merge this? |
Tested on my side as well, working well good job 👍 |
Would be nice to have a complete example including path of any Java classes and AndroidManifest. |
@floydus could you describe your issue in detail (I will try to help)? I've described all changes above what we did to make it work ( |
Does this pull request affect only P2P notifications? I'm looking for a way to silently process notifications that are sent programmatically through an API. Is this what I'm looking for? |
From the server, you could send all parameters before my changes I guess. |
@bitsal: Thank you very much on your helps. However I'm wondering if it's gonna support if the app has been killed? I'm testing on Android Emulator with below curl
When the app is in background or foreground, it's working fine, however if the app has been killed, event doesn't seems to be triggered. Is this a known issue? |
@isaaclem It didn't work for me either with that version of this library for a case when app is closed. Please check official documentation about whether it is possible just to be sure it is possible or an issue on SDK/library side. |
Hidden messages were verified on Android. On iOS it should work out-of-the-box using empty
contents
andcontent_available=1
.It should fix #115