Tag: FIREBASE-CLOUD-MESSAGING
Cuando la aplicación de Android está en estado de primer plano, se invoca el listener onPushNotificationReceived con los datos de la notificación. Cuando está en estado de segundo plano o terminado, se recibe la notificación pero el listener onPushNotificationReceived no se invoca automáticamente ni cuando toco la notificación. Estoy enviando . . . Read more
Mi certificado de Servicios de Notificación Push de Apple está a punto de caducar, así que creé y descargué uno nuevo. Ahora quiero subirlo a Firebase. Hay dos posibilidades: Usando una clave (formato p8, recomendado). Usando un certificado (formato p12). Nuestra aplicación en vivo actualmente está usando una clave, así . . . Read more
Estoy intentando implementar el seguimiento de ubicación en segundo plano a través de una notificación persistente. Puedo iniciar fácilmente el servicio con la notificación si la aplicación está en primer plano o abierta en el administrador de tareas del teléfono. Sin embargo, quiero activar el inicio del servicio a través . . . Read more
let token = Messaging.messaging().fcmToken let fixedUrl : String = String(“\(loadUrl)?os=I&fcm_token=\(token)&tval=tt\(appVer)”) let url : URL? = URL(string:fixedUrl) webView.load(URLRequest(url: url!)) este código produce un error si no permito el permiso de notificación push al iniciar la aplicación. ¿Cómo puedo expresar token = fcmToken? fcmToken : "" en Swift?
Estoy tratando de configurar notificaciones web con FCM y obtengo mensajes de error cuando intento registrar el service worker. Mi estructura es la siguiente: domain.com/notification/index.html domain.com/notification/test-worker.js Index.html: function registerServiceWorker() { console.log(‘start register’); return navigator.serviceWorker.register(‘/notification/test-worker.js’) .then(function(registration) { console.log(‘Service worker successfully registered.’); askPermission(); return registration; }) .catch(function(err) { console.error(‘Unable to register service . . . Read more