firebase-cloud-messaging

How to use process.env in a React service worker

杀马特。学长 韩版系。学妹 提交于 2021-01-26 05:36:28
问题 I am trying to set-up a Firebase-messaging-sw.js file (for web push notifications). I am wondering if there is a way to avoid exposing my Firebase config data to the public as much as possible - though it might be revealed anyways? (I'm not too sure about the nuances) I've tried following: How can I customize my Service Worker based on environment variables? But the answer's swEnvbuild doesn't seem to be running, as the swenv.js file is not found. I suspect it might need to be set-up

Create daily push notification using Firebase Cloud Messaging

佐手、 提交于 2021-01-26 03:56:22
问题 In the Firebase console we can set a specific time and date when will our notification will be push. But is there a way that we can set it daily? For example it will send every Monday, Wednesday and Friday or everyday? 回答1: Push campaigns with Firebase Notifications can be sent now or later (scheduled). You could probably switch to Firebase Cloud Messaging, use their HTTP API and then build a cron script to trigger your notifications automatically on these days. Or switch to a more mature

Create daily push notification using Firebase Cloud Messaging

 ̄綄美尐妖づ 提交于 2021-01-26 03:56:11
问题 In the Firebase console we can set a specific time and date when will our notification will be push. But is there a way that we can set it daily? For example it will send every Monday, Wednesday and Friday or everyday? 回答1: Push campaigns with Firebase Notifications can be sent now or later (scheduled). You could probably switch to Firebase Cloud Messaging, use their HTTP API and then build a cron script to trigger your notifications automatically on these days. Or switch to a more mature

File google-services.json is missing. The Google Services Plugin cannot function without it ionic 3

孤人 提交于 2021-01-21 12:32:04
问题 I am using FCM for push notification I always get this error message "File google-services.json is missing. The Google Services Plugin cannot function without it ionic 3" on phone I have placed my google-services.json on every folder and nothings working 回答1: Fist of all you need to download google-services.json: Sign in to Firebase and open your project. Click the Settings icon and select Project settings. In the Your apps card, select the package name of the app you need a config file for

File google-services.json is missing. The Google Services Plugin cannot function without it ionic 3

只愿长相守 提交于 2021-01-21 12:31:06
问题 I am using FCM for push notification I always get this error message "File google-services.json is missing. The Google Services Plugin cannot function without it ionic 3" on phone I have placed my google-services.json on every folder and nothings working 回答1: Fist of all you need to download google-services.json: Sign in to Firebase and open your project. Click the Settings icon and select Project settings. In the Your apps card, select the package name of the app you need a config file for

push notification enable and disable by using switch

ぃ、小莉子 提交于 2021-01-09 12:57:04
问题 im using firebase push notification(FCM)..and i want to enable and disable notifications by switch button for that i have shared preferences to enable and disable notifications but it seems my logic is not at all working if turn on and off switch still it is receiving notifications need help thanks activity:-- val sharedPreferences = getSharedPreferences("myname", MODE_PRIVATE) simpleSwitch.setChecked(sharedPreferences.getBoolean("SWITCH_PARTIDOS_STATE", false)) simpleSwitch

push notification enable and disable by using switch

拈花ヽ惹草 提交于 2021-01-09 12:55:27
问题 im using firebase push notification(FCM)..and i want to enable and disable notifications by switch button for that i have shared preferences to enable and disable notifications but it seems my logic is not at all working if turn on and off switch still it is receiving notifications need help thanks activity:-- val sharedPreferences = getSharedPreferences("myname", MODE_PRIVATE) simpleSwitch.setChecked(sharedPreferences.getBoolean("SWITCH_PARTIDOS_STATE", false)) simpleSwitch

push notification enable and disable by using switch

穿精又带淫゛_ 提交于 2021-01-09 12:46:56
问题 im using firebase push notification(FCM)..and i want to enable and disable notifications by switch button for that i have shared preferences to enable and disable notifications but it seems my logic is not at all working if turn on and off switch still it is receiving notifications need help thanks activity:-- val sharedPreferences = getSharedPreferences("myname", MODE_PRIVATE) simpleSwitch.setChecked(sharedPreferences.getBoolean("SWITCH_PARTIDOS_STATE", false)) simpleSwitch

push notification enable and disable by using switch

ε祈祈猫儿з 提交于 2021-01-09 12:45:58
问题 im using firebase push notification(FCM)..and i want to enable and disable notifications by switch button for that i have shared preferences to enable and disable notifications but it seems my logic is not at all working if turn on and off switch still it is receiving notifications need help thanks activity:-- val sharedPreferences = getSharedPreferences("myname", MODE_PRIVATE) simpleSwitch.setChecked(sharedPreferences.getBoolean("SWITCH_PARTIDOS_STATE", false)) simpleSwitch

I'm unable to get Device token in an ionic app as a result of Cannot read property 'onTokenRefresh' of undefined

泄露秘密 提交于 2021-01-07 02:46:06
问题 I followed two tutorials that suggested installed the following: ionic cordova plugin add cordova-plugin-fcm-with-dependecy-updated npm install @ionic-native/fcm I kept getting errors after installing to a device that said the fcm plugin isn't installed so I viewed https://www.npmjs.com/package/cordova-plugin-fcm-with-dependecy-updated#fcmontokenrefresh site that suggested uninstalling npm uninstall @ionic-native/fcm # Ionic support is included and conflicts with @ionic-native's