push-notification

Why some special characters are not supported in one signal?

我与影子孤独终老i 提交于 2020-03-23 12:04:25
问题 I am using onesignal to send push notifications to mobile app from my webservice. but I realized that some characters are not supported, what can we do to resolve this issue? below is my postString sent to onesignal: postString = "{""app_id"":""myID"",""language"":""ar"", ""tags"" : [{""key"": ""my_key"", ""relation"": ""="", ""value"": """ & my_value& """}] , ""data"" : {""contactName"" : """ & contactName & """ }, ""contents"" : {""en"" : """ & pushMessage & """ } }" when I tried to send

iOS update push in content extension

时光总嘲笑我的痴心妄想 提交于 2020-03-21 05:16:13
问题 iMessage updates the rich push when it's on the screen. You can see what is user is typing RIGHT NOW, and message will be added to your conversation. So the question is: how i can catch new push notification, when i'm already looking at opened rich push? Is there any event in UNNotificationContentExtension to catch the new one and update view? The only one i know is: - (void)didReceiveNotification:(UNNotification *)notification but it is triggered only when you open the push first time Edit:

iOS update push in content extension

我怕爱的太早我们不能终老 提交于 2020-03-21 05:16:08
问题 iMessage updates the rich push when it's on the screen. You can see what is user is typing RIGHT NOW, and message will be added to your conversation. So the question is: how i can catch new push notification, when i'm already looking at opened rich push? Is there any event in UNNotificationContentExtension to catch the new one and update view? The only one i know is: - (void)didReceiveNotification:(UNNotification *)notification but it is triggered only when you open the push first time Edit:

didRegisterForRemoteNotificationsWithDeviceToken is not getting called Swift 5, Xcode 10.2

允我心安 提交于 2020-03-04 06:55:23
问题 didRegisterForRemoteNotificationsWithDeviceToken and didFailToRegisterForRemoteNotificationsWithError is not getting called on real device. This what i have tried so far: In didFinishLaunchingWithOptions FirebaseApp.configure() if #available(iOS 10.0, *) { let center = UNUserNotificationCenter.current() center.delegate = self center.requestAuthorization(options: [.badge, .alert, .sound]) { (granted, error) in if granted { DispatchQueue.main.async { application.registerForRemoteNotifications()

Different “from:” values received from GCM CCS server upstream msg from the same client

蹲街弑〆低调 提交于 2020-02-27 09:41:43
问题 I'm using the GCM demo application provided by google (repository URL). When receiving upstream XMPP messages in my app server, consecutive tokens received from the same client differ in their " from " key, is that how it's supposed to be ? From what I understand, " from " key should always point to a static GCM registration ID obtained by client and thus should not change (at least per each upstream message !). Here are 3 consecutive upstream messages converted to json I recieve from the app

How to make a GCM / FCM notification-type message non-collapsible

眉间皱痕 提交于 2020-02-27 09:05:11
问题 Google Cloud Messaging (GCM) support two types of push messages: "notification" messages and "data" messages. According to the documentation, notification messages are collapsible by default, while data messages are non-collapsible by default. In order to make a data message collapsible, you need to specifiy a collapseKey . My question is: How can you make a notification message non-collapsible? Note: The question applies to Firebase Cloud Messaging (FCM) as well. 回答1: The message concepts

Send push notification title to its invocation intent in Actions on Google

时间秒杀一切 提交于 2020-02-25 04:07:11
问题 I'm sending push notifications in Actions on Google (ref this official documentation). So once I send the notification I'm sending title in it. So it looks like this, where A Very Happy Birthday, Jay Patel is the title that I've sent. So once I click on the notification, it opens Google Assistant and invokes the intent (configured in this step), but it doesn't specify any contexts or other data regarding that notification so I'm not getting a person name that I've specified in title or any

Google FCM Server: 200 but no notification sent to phone

a 夏天 提交于 2020-02-21 18:25:13
问题 I am working via Postman to send a FCM push notification to my phone that already has the app installed. I have push notifications enabled, the app is on the background, and I have a valid (confirmed) Firebase push token. I'm POSTing to https://fcm.googleapis.com/fcm/send with the headers (Authorization: key=APP_SERVER_KEY, Content-Type: application/json), and my body looks like: { "notification": { "title": "Portugal vs. Denmark", "text": "5 to 1" }, "to": MY_PUSH_TOKEN } I'm getting the

Sending push notification to Android from Java server using Urban airship

僤鯓⒐⒋嵵緔 提交于 2020-02-20 21:34:34
问题 I want to use Urban airship to deliver Push notification to Android . I can send Push notification from Urban Airship site but i don't know how can i send messages in Java application using urban Airship web service . i don't want to go to their site and send message to any Android device i just wanted my personal website (developed in Java EE ) to use their service and send messages to android devices. plz share any code or toturial Thanks in advance 回答1: This project in bitbucket

Sending push notification to Android from Java server using Urban airship

蹲街弑〆低调 提交于 2020-02-20 21:31:58
问题 I want to use Urban airship to deliver Push notification to Android . I can send Push notification from Urban Airship site but i don't know how can i send messages in Java application using urban Airship web service . i don't want to go to their site and send message to any Android device i just wanted my personal website (developed in Java EE ) to use their service and send messages to android devices. plz share any code or toturial Thanks in advance 回答1: This project in bitbucket