Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielpassos/fcm-playground-ionic
An Ionic playground app for testing Firebase Cloud Messaging
https://github.com/danielpassos/fcm-playground-ionic
Last synced: about 17 hours ago
JSON representation
An Ionic playground app for testing Firebase Cloud Messaging
- Host: GitHub
- URL: https://github.com/danielpassos/fcm-playground-ionic
- Owner: danielpassos
- Created: 2019-05-22T13:58:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T05:42:45.000Z (almost 2 years ago)
- Last Synced: 2024-10-13T14:47:06.046Z (about 1 month ago)
- Language: TypeScript
- Size: 3.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fcm-playground-ionic
An Ionic playground app for testing Firebase Cloud Messaging## How to use it
1. Clone the project
```shell
git clone [email protected]:danielpassos/fcm-playground-ionic.git
cd fcm-playground-ionic/
git checkout aerogear
```
1. Create a project on [Firebase](http://console.firebase.google.com/)
1. Add and Android app using the **Android package name** `me.passos.playground.fcm.ionic`
1. Download the **google-services.json** file to the root folder1. Add a `mobile-services.json` file in the `src/app/home/` folder with the following content
```json
{
"version": 1,
"namespace": "playground",
"clientId": "fcm-playground",
"services": [
{
"id": "push",
"name": "push",
"url": "[YOUR_UNIFIEDPUSH_SERVER URL/IP]",
"type": "push",
"config": {
"android": {
"variantId": "[YOUR_UNIFIEDPUSH_SERVER_VARIANT_ID]",
"variantSecret": "[YOUR_UNIFIEDPUSH_SERVER_VARIANT_SECRET]",
"senderId": "[YOUR_FCM_SENDER_ID]"
}
}
}
]
}
```1. Add the **Android** platform
```shell
ionic cordova platform add android
```1. Run the app in the Android device
```shell
ionic cordova run android
```