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

Instructions to fix image issue in meteor 1.8.1 #4

Merged
merged 1 commit into from
Dec 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion docs/ANDROID.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ For more info and checking the validity of a server key, reference [official doc
To show you app's icon in the notification you will have to prepare an image file with your icon in it and every else being transparent. You can see [here](https://clevertap.com/blog/fixing-notification-icon-for-android-lollipop-and-above/) how it can be done.


Then put the file (e.g. "logo.png") in your project directory under this path:
Then based on your meteor version put the file (e.g. "logo.png") in your project directory under this path:

__For meteor ≥ 1.8.1__
```
cordova-build-override/platforms/android/app/src/main/res/drawable/
```

__For meteor < 1.8.1__
```
cordova-build-override/platforms/android/res/drawable/
```
Expand All @@ -115,4 +121,30 @@ In your `Push.configure` block on the **client** you have to set the name of the
},

```

## Notification Sound

If you want to notify your users using a personalized sound, prepare a mp3 file (e.g. yellow.mp3).

Then based on your meteor version put that file in your project directory under this path:

__For meteor ≥ 1.8.1__
```
cordova-build-override/platforms/android/app/src/main/res/raw/
```

__For meteor < 1.8.1__
```
cordova-build-override/platforms/android/res/raw/
```

In your `Push.configure` block on the **client** you have to set the sound property:

```js
Push.Configure({
android: {
...
sound: 'yellow'
},

```