Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Android add Icon #29

Closed
iparrabb opened this issue Jun 26, 2017 · 2 comments
Closed

Android add Icon #29

iparrabb opened this issue Jun 26, 2017 · 2 comments

Comments

@iparrabb
Copy link

Hi,

I'm trying to send notifications to Ionic with a custom Icon but doesn't work's, can you add an example of usage please?.

My code.

return IonicPushMessage::create('development')
	    ->androidIcon('//mydomain.com/592d4681a24b6.png')
            ->androidTitle($this->notification['title'])
            ->androidMessage($this->notification['message']);
@JayBizzle
Copy link
Member

Did you solve this?

@iparrabb
Copy link
Author

Yeah, I was able to solve this adding the icon like a resource but not like an url.

return $notification
	    ->androidIcon('ic_stat_airplanemode_active')
            ->androidTitle($this->notification['title'])
            ->androidMessage($this->notification['message']);

The resource has been generated using this platform and works fine.

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

No branches or pull requests

2 participants