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

Some custom payloads and white_notification_icon.png are not compatable :( #42

Closed
hopesourav opened this issue Jul 24, 2016 · 13 comments
Closed
Labels
Milestone

Comments

@hopesourav
Copy link

I am using few custom payloads such as -
"InboxStyleOff" => "true"
"BigTextStyle"=> "true"
"bigText"=> "XYZ....."

However, my notification icon (white_notification_icon.png in res/drawable) turns white box again when the above payloads are used!
It works normal with "largeIcon" & "customNotificationTitle" .

Please check and let me know!

@joanebrown
Copy link

+1

@hopesourav
Copy link
Author

@joanebrown this is not closed. #41 is closed.

@joanebrown
Copy link

Yes, I had a mistake hehe

@hopesourav
Copy link
Author

hopesourav commented Jul 29, 2016

Let @AbdullahDiaa reply

@AbdullahDiaa AbdullahDiaa added this to the 1.4.x milestone Oct 15, 2016
@AbdullahDiaa
Copy link
Member

AbdullahDiaa commented Oct 27, 2016

This has been fixed with latest Android library.

First generate small Icon:
https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.space.trim=1&source.space.pad=0&name=ic_stat_pushbots_sicon

Then copy it to platforms/android/res folder, must be titled ic_stat_pushbots_sicon

And for phonegap build, check out this link for more details:
phonegap/build#472 (comment)

@hopesourav
Copy link
Author

Hi ...
When Can we expect 1.4.x to be available via npn ?

@amrsobhy
Copy link
Member

@hopesourav you can do the following until it's available on npm

cordova plugin install https://github.com/pushbots/phonegap/

@AbdullahDiaa
Copy link
Member

@hopesourav The plugin has been updated on npm to 1.4.0 with latest SDKs.

@hopesourav
Copy link
Author

Hi @AbdullahDiaa and @amrsobhy ,

Guys Thanks! Got the 1.4.0 update via npm.
However, the issue still exists. Maybe I have made some mistake . Could you pls verify the steps -

  1. Updated 1.4.x version of Pushbot and Android libraries via SDK manager.
  2. Copied the downloaded icons to platforms/android/res folder, and titled them ic_stat_pushbots_sicon.png instead of white_notification_icon.png
  3. rebuild the app using CLI

Still the white icon appears with the below payloads as reported earlier -
"InboxStyleOff" => "true"
"BigTextStyle"=> "true"
"bigText"=> "XYZ....."

Request you to pls guide me.

Regards,
Sourav

@amrsobhy
Copy link
Member

amrsobhy commented Nov 2, 2016

@hopesourav Connect your device to a computer running Android studio and check and share logcat under PB3 tag.

@hopesourav
Copy link
Author

Hi @AbdullahDiaa and @amrsobhy ,

logcat PB2 log.txt

Pls let me know if u guys need anything else!

Regards,
Sourav

@hopesourav
Copy link
Author

1 more thing :

Could you pls guide me how to update the pushbot library to 3.0.1 ?

It seems I am using the library pushbots-lib-2.0.13. And updating the plugin to 1.4.0 has not automatically updated my library.

I will be really great if we can schedule a call sometime.

Regards,
Sourav

@AbdullahDiaa
Copy link
Member

@hopesourav It seems you're still using old plugin, if you updated to 1.4.x+ you'll automatically on Pushbots library v3

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

No branches or pull requests

4 participants