Device token is of 32 Bytes. Sample device token is provided for your reference from raywenderlich 740f4707 bebcf74f 9b7c25d4 8e335894 5f6aa01d a5ddb387 462c7eaf 61bb78ad ...
ios,localization,push-notification,apple-push-notifications,nslocalizedstring
The docs imply that it's either/or: you should either set the body or the loc-key / loc-args properties. Apple docs. They might fall back to body if loc-key is not found, or they might never even look it up in Localizable.strings when body is present. Since docs don't define it,...
Do something like this to check whether you app is in foreground or not by calling below method and depending on returning value true or false do your rest of work public boolean checkApp(){ ActivityManager am = (ActivityManager) this .getSystemService(ACTIVITY_SERVICE); // get the info from the currently running task List<ActivityManager.RunningTaskInfo>...
android,parse.com,push-notification,cloud-code
I gave up attempting to use the Parse User or Parse Installation as IDs and used the Facebook ID instead to get Push Notifications working. var pushQuery = new Parse.Query(Parse.Installation); pushQuery.equalTo("facebookId", recipientId); ...
ok so i found a solution using the $or operator: using the PHP-SDK from parse.com: $cat = array('channel1', 'channel_1_sub'); $or_QUERY=array(); for($z=0; $z<count($cat); $z++) { $query = ParseInstallation::query(); $query->equalTo("channels", $cat[$z]); $or_QUERY[]=$query; } $query_or = ParseQuery::orQueries($or_QUERY); $push_data = array( "where" => $query_or, "data" => $data ); ParsePush::send($push_data); wich actually results in following...
ios,iphone,swift,push-notification
From the application, it is near to impossible, but you can set your change your Service which send Push notification. If you are using APNS, than you must send Device token to your server, for send push notification. You can make call to server for disable it with the device...
ios,push-notification,apple-push-notifications,watchkit,apple-watch
The first thing to understand is that notifications aren't specific to either the iPhone or the Apple Watch. They're the same old notifications we've been dealing with for years, and nothing has changed. That means that there's no such thing as an "Apple Watch-specific notification" or an "iPhone-only notification." iOS...
ios,parse.com,push-notification,apple-push-notifications
As per the apple documentation: The first time you register your app’s preferred notification types, the system asks the user whether your app should be allowed to deliver notifications and stores the user’s response. The system does not prompt the user during subsequent registration attempts. The user can always change...
When you upload your application for submission to the app store, it should be a production-ready version. Thus it should include your production push certificates.
You can't. How would the user call the registration process for the push messages if he never ran the app itself? Until he does, the app is considered to be in a stopped state and you can't interact with it unless you have another app installed that would "start" it.
ios,xcode,swift,uiviewcontroller,push-notification
Try this let storyboard = UIStoryboard(name: "YourStoryboardName", bundle: nil) let rootVC = storyboard.instantiateViewControllerWithIdentifier("HomeVC") as! UITabBarController if PFUser.currentUser() != nil { rootVC.selectedIndex = 2 // Index of the tab bar item you want to present, as shown in question it seems is item 2 self.window!.rootViewController = rootVC } ...
By setting the applicationIconBadeNumber to 0 you also remove every notification from the notification center. This has also been discussed here: iOS application: how to clear notifications? Further more it is not possible to programmatically remove a single notification, but from iOS8+ the OS will handle this for you when...
asp.net-mvc-4,push-notification
You can use SignalR : $.connection.hub.start().done(function () { $('#sendmessage').click(function () { // Call the Send method on the hub. chat.server.send($('#displayname').val(), $('#message').val()); // Clear text box and reset focus for next comment. $('#message').val('').focus(); }); }); use more info: tutorial...
javascript,google-chrome,push-notification
Unfortunately it seems like an intended behavior: A downside to the current implementation of the Push API in Chrome is that you can’t send a payload with a push message. Nope, nothing. The reason for this is that in a future implementation, payload will have to be encrypted on your...
android,push-notification,broadcastreceiver,android-5.0-lollipop
I faced same problem in my app. Follow this link I hope you will solve this problem. And little bit explanation regarding your issue. Download and add gcm.jar in your project lib folder. And Add below code in your java class where you want to register. GCMRegistrar.checkDevice(this); GCMRegistrar.checkManifest(this); // Get...
parse.com,push-notification,apple-push-notifications
Yes, you need an Installation object. The implementation on the backend side queries the Installations collection and you can't change this. Adding the code is to create the Installation and store the token is pretty straight forward and does not require much code: - (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {...
ios,push-notification,provisioning-profile
Yes, you need a Production Profile for use with Ad-Hoc distribution; a Sandbox Profile will only work with debug builds as described here.
.net,wcf,parse.com,push-notification
You need to go into the parse web interface for your app, then to settings, then push notifications, then set the Client push enabled? to on.
java,android,android-intent,push-notification,android-gcm
You have a problem with your GcmBroadcastReceiver. The permission and the category are wrong. The receiver entry in the manifest should look something like this: <receiver android:name=".MainActivity$GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND"" > <intent-filter> <action android:name="com.google.android.c2dm.intent.RECEIVE" /> <category android:name="com.example.alfredo.guiaswebtabapp" /> </intent-filter> </receiver> Also add a log to the receiver to check if it's being...
javascript,angularjs,cordova,binding,push-notification
If your app.ready() method has access to Angular's $rootScope, perhaps you could broadcast the change. This is untested, but something like this: // inside the `message` case statement if (e.foreground) { $rootScope.$broadcast('$newMessageReceived', e.payload.message); } Then, watch for the broadcast in your controller: .controller('msjctrl', function($scope) { var self = this; this.msjs=['message1','message2'];...
android,push-notification,windows-phone-8.1
You cannot use GCM on another platform, windows has their own Push notification API
android,push-notification,android-gcm
I mailed the customer support of jPush. They mentioned it works worldwide. Below is their response. We've confirmed that JPush works outside China. However, maybe due to network stability issue, we experienced some delay of message delivery. So we recommend you to check if the stability of JPush is enough...
android,push-notification,android-gcm,google-cloud-messaging
In case anyone else runs in to this, the problem was that I did not whitelist my IP address on developers.google.com. I now have it set so all IPs are whitelisted, and it works like a charm.
ios,objective-c,xcode,swift,push-notification
What do you mean by rebuild? Tokens don't change every time an app is rebuilt. The tokens can change but its unfrequent when they do, when they do is not documented by apple, but I have noticed it will occur if you backup then restore the app from iTunes as...
java,android,parse.com,push-notification
Generally, I recommend the official tutorial. Your com.parse.ParseBroadcastReceiver uses wrong action names and should read: <receiver android:name="com.parse.ParseBroadcastReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.USER_PRESENT"/> </intent-filter> </receiver> You're lacking this receiver (code from the tutorial linked above): <receiver android:name="com.parse.GcmBroadcastReceiver"...
ios,swift,parse.com,push-notification,apple-push-notifications
If your app is not running (background or foreground) then the only way to get the notification payload data is when the user opens your app by tapping on the notification. If that happens you can use the didFinishLaunchingWithOptions method to retrieve the data. Other than that, the best way...
ios,push-notification,apple-push-notifications
It's the password you specified when generating the .p12 file in KeyChain. You entered the password in this step: Save the private key as PushChatKey.p12 and enter a passphrase. ...
ios,push-notification,apple-push-notifications
For that you can achieved with your back end team. You need to call a web services for stop notification for the particular activity. You can arrange its screen like setting as you mention and based on your each activity functionality you can stop and active Notification for user. I...
android,push-notification,android-notifications
public NotificationCompat.Builder setFullScreenIntent (PendingIntent intent, boolean highPriority) An intent to launch instead of posting the notification to the status bar. Only for use with extremely high-priority notifications demanding the user's immediate attention, such as an incoming phone call or alarm clock that the user has explicitly set to a...
ios,swift,cocoa-touch,push-notification,uistoryboardsegue
The answer code is Objective-C, I want to talk about logic. To do this, when you are creating your push notification, you must set userInfo value to pass data with your push notification. Use this delegate method : application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler You can decide if which view...
android,push-notification,alarmmanager
You need to subclass BroadcastReceiver and register it either statically in the manifest file or dynamically using registerReceiver via LocalBroadcastManager. The onReceive() method of your BroadcastReceiver will push the notification when it receives the intent generated by the alarm. Static registration is simple: <receiver android:name=".MyAlarmReceiver" /> Then move the notify...
ios,xcode,swift,push-notification,ios-provisioning
hate to answer my own question but this issue is resolved now. I restarted the project completely and followed all the steps again, no issue anymore.
android,push-notification,android-gcm
It is true that GCM will take some time to unregister the device after uninstalling. Based on the docs, the GCM server will mark the registration ID for deletion only after sending a message that "bounces back" because the app has been uninstalled. If only to make the situation a...
android,android-studio,parse.com,push-notification,genymotion
I've found the solution to the problem. I've tested this in android 4.1.2, 4.3. The working class is given as follows : package com.pchakraverti.enotice_new; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.support.v7.app.NotificationCompat; import android.util.Log; import...
ios,parse.com,push-notification,badge
See my answer here: http://stackoverflow.com/a/27615528/2353523 for reference you've created your own dictionary. That's used for interactive notifications etc. Badge is outside of that dictionary that you've created which is the correct dictionary for sending pushes. That's why it doesn't increment in the payload you created under the dictionary of aps....
push-notification,push,bluemix
There was maintenance being completed on US-South region over the last 24 hours. Here is the support notice: IBM Bluemix Platform maintenance US-SOUTH region June 2 10:00 PM EDT Starting at 10pm US EST Tuesday June 2, and lasting approximately 24 hours, there will be a maintenance update rolling out...
ios,json,push-notification,apple-push-notifications,payload
As you wrote yourself, this is not possible. If you will try to send a plain text to the APNS, the notification won't arrive to the device at all.
android,push-notification,android-gcm,google-cloud-messaging
Your app is getting this message because it has had data restored from a backup. As the backup may have included registration tokens, this broadcast is sent telling your app to get new tokens as the backed up ones will not work. This is intended for the new GCM APIs,...
php,android,mysql,push-notification,android-gcm
First register the device to GCM and get the gcm key. Send the notification to that device manually using the GCM key. Curl request to do so is curl --header "Authorization: key=" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -XPOST -d '{"data":{"New message through curl"},"registration_ids":["APA91bGe-Ihcjil6YXgLNEtf1fZCvcrgcn35rTOsHPrK7mxoz70TP6jmniChLXmIbLd642CWGo0fem9XrECa2ukvAvNYfNY7HcJ0JcxTInBxNn5Pml9YQIU6qwRVQ4v8GIE4oZv4vjoc"]}' If you get the notification using this then your...
cordova,push-notification,sms,phonegap-plugins
Sending a SMS is generally just a simple HTTP request to a third party able to send a SMS. So any client or server can do it. The SMS will just be sent as any normal SMS. Sending a push notification is generally done from a server since it's also...
php,ios,iphone,ios7,push-notification
There is no problem with your iOS code so far, but in your php script you are missing the badge count. In all iOS apps, unread notification counts are maintained from backend/server. When the backend/server sends a push notification to a particular device then server sends the badge count along...
ios,push-notification,watchkit,apple-watch,handoff
Since there's no way to call the call the appropriate Handoff methods for a static notification - owing to the inability to use a custom class - there's no way to accomplish what you're looking for at this time.
asp.net-mvc,push-notification,windows-services,long-running-processes
Don't use a threads of the web application for long running tasks because you will end up having scalability issues because the number of threads are limited. This is work for a windows service and to decouple it from the application creating the jobs use a queue (something like msmq,...
javascript,c#,push-notification,windows-8.1,winjs
Typically you'd do this by having the C# background task project as part of the same VS solution, and then add a reference from the JS app project to the background task project. I would recommend not ever instantiating the C# component/class from your JS app, as this is not...
parse.com,push-notification,ionic-framework,cloud-code
Can you see the results of the Installation query where you add the constraint; query.contains('channels', 'user-' + request.user.id); The problem might be the empty result. Check it. One of suggestion to singe push single target is just use the user id. Save the user id in installation table and send...
azure,push-notification,azure-mobile-services
multi-tenancy is supported through Notification Hubs directly, so client will need to connect to various hubs directly when operations are performed. If the device registration is using the same connection string, it is likely that you are using Mobile Services' (Mobile Apps) push client. Do you mind checking? The get...
ios,background,notifications,push-notification,nsurlsession
A background push will never be delivered if the user has explicitly terminated the app. Apart from that, background pushes were reliable (though not 100% guaranteed) up until 8.1. With iOS 8.1 onwards background pushes are only delivered to the app immediately after being sent if the device is being...
android,push-notification,alarmmanager,android-alarms
if the time has passed for the current date it executes the code of performing alarm .This need to be handled . I do it by following way Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); calendar.set(Calendar.HOUR_OF_DAY, mytesthourofday); calendar.set(Calendar.MINUTE, Integer.parseInt(min_am_pm[0])); // calendar.set(Calendar.AM_PM, am_pm_integer); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); if (calendar.getTimeInMillis() < System.currentTimeMillis()) {...
ios,push-notification,apple-push-notifications,badge
[UIApplication sharedApplication].applicationIconBadgeNumber Try...
ios,push-notification,apple-push-notifications,in-house-distribution
Production, I've build many InHouse apps and production works. The sandbox only works with development builds. I understand the confusing the Apple documentation states: Apple Push Notification service (APNs) is available only to apps distributed through the iOS App Store or Mac App Store. Your app must be provisioned and...
java,android,ios,push-notification,pushwoosh
There are two ways of handling this: Send pushes via Tags feature, where you set Tags on the device with the setTags method, not with push tokens. We will remove invalid/expired tokens for you. You can use getUnregisteredDevices method, which is currently not documented publicly, but the Support team can...
ios,objective-c,push-notification,google-cloud-messaging
I have ended up using default APN server with my backend server and left GCM for iOS as it was. I have read in some blogs that SDK for GCM is not stable yet and it causes some problems frequently. This happens for when we are implementing login with google...
android,ios,unity3d,push-notification,android-notifications
You are right, someone has done that indeed :) I'm one of developers of the new Unity asset UTNotifications. It does all you need and even more. Please also note that there is no single way to implement the Push Notifications to work with any Android device - there is...
objective-c,xcode,ios8,push-notification,testflight
I found answered of my question. Never use your NSUserDefaults' key as @"key". For example what I have previously used. [[NSUserDefaults standardUserDefaults] setObject:deviceToken forKey:@"key"]; [[NSUserDefaults standardUserDefaults] synchronize]; And what I am using now. [[NSUserDefaults standardUserDefaults] setObject:deviceToken forKey:@"token"]; [[NSUserDefaults standardUserDefaults] synchronize]; And now push notification is coming as it is. So...
android,drupal,drupal-7,push-notification
Enable permissions for anonymous user in Drupal administration - People/Permissions/Push permissions. It helped me.
ios,iphone,xcode,parse.com,push-notification
Use advanced targeting. Just enumerate device tokens you need to send push notifications to in where clause. Check out this sample in parse.com forum.
ios,objective-c,parse.com,push-notification
You first need to create a relationship between a user and it's installation. Remember that notifications on iOS are send to devices as the Apple notification system knows nothing about your users. [[PFInstallation currentInstallation] setObject:[PFUser currentUser] forKey:@"user"]; [[PFInstallation currentInstallation] saveEventually]; Now your code is easier to use: // Create our...
ios,parse.com,push-notification
Yes , Its possible . Please refer below screenshot where you can upload multiple p12 certificates file for multiple iOS app. Then you will send pushes according to app e.g. using channels. One channel name for one app, another channel for second app. Also you can add extra field to...
android,android-activity,push-notification,android-pendingintent
Set the pending intent to send a broadcast. Then you receive it in a <receiver> and from that receiver you choose which activity to launch depending on the state.
push-notification,service-worker,chrome-gcm
What you'd need to do is keep track of the registration ids for all of your clients in a backend datastore, and then use all of those registration ids when sending notifications from a backend process. It can't all be done client side in a real-world system—the curl trick is...
php,iphone,notifications,push-notification,pushwoosh
It's in this line: $request = json_encode(['request' = $data]); ^ It should obviously be: $request = json_encode(['request' => $data]); You didn't see any notice because the display_errors setting must be set outside of the script to catch parse errors such as this one....
This is not possible at the moment, the only two ways are to either use the Push Dashboard in a browser, which can be unhandy if you schedule a huge amount of notifications or to implement your own queuing system for Push notifications. The latter would involve creating a new...
ios,push-notification,apple-watch
Have a look at this. To specify custom action buttons, you need to create a custom notification category. When you create the notification, set the category to your customized one. The example from the Apple Documentation: func registerSettingsAndCategories() { var categories = NSMutableSet() var acceptAction = UIMutableUserNotificationAction() acceptAction.title = NSLocalizedString("Accept",...
ios,push-notification,apple-push-notifications
If you are not Apple this is not possible. For all other developers, the user needs to allow you to send him notifications and for that you need to have the app installed. Also, if he deletes the app, Apple will interpret this as you don't want to have any...
php,push-notification,require,pushwoosh,php-include
The class you want resides in a namespace, so you need to instruct PHP to "import" it (and other classes) from there; add this to the beginning of your script: use Gomoob\Pushwoosh\Client\Pushwoosh; use Gomoob\Pushwoosh\Model\Request\CreateMessageRequest; use Gomoob\Pushwoosh\Model\Notification\Notification; require __DIR__.'/vendor/autoload.php'; ...
android,push-notification,android-gcm
You need to set a click_action in the notification payload. Then when the user opens/clicks on the notification, an Activity in your app declared with that action will be launched. e.g set click_action: OPEN_ACTIVITY_1, and add the following intent filter to the desired Activity: <intent-filter> <action android:name="OPEN_ACTIVITY_1" /> <category android:name="android.intent.category.DEFAULT"...
php,android,push-notification,titanium
The code above given is absolutely correct. I guess the problem is only the keyword payload. Just replace the word "message" to "payload" at server side script as below. $fields = array( 'registration_ids' => $registrationIDs, 'data' => array( "payload" => $message, ) ); Because in Titanium ti.cloudePush module internally search...
push-notification,apple-push-notifications,azure-notificationhub
See this answer. The Notification Hub does not know whether a given push token is for a device with iOS 7 or iOS 8. So it will send the notification along to Apple and report an error in the Notification Hub dashboard if Apple returns an error. So to take...
push-notification,worklight,mobilefirst
I was calling a method in the adapter with the property securityTest="wl_unprotected" Removed that solve my problem....
c#,azure,push-notification,visual-studio-2005,windows-universal
A push notification by definition is pushed from off system, but you can schedule local notifications without a network. Since the countdown has a predictable time you can calculate when that is and schedule tile notifications to fire appropriately. I'd skip toasts for this unless the user authorized them. If...
ios,cordova,push-notification,pushwoosh
Ok, now I works. It is no where mentioned, but in order to get the right .p12 file you have to unfold the private key certificate in your Keychain Access program, and then you must select both (the certificate and the key). Right click -> Export.
javascript,angularjs,cordova,push-notification,phonegap-pushplugin
I was asking myself why it worked correctly the first time and not the following times...and i had this idea : maybe callback function is subscribed to plugin first time but not the next times. And this is exactly the source of my problem. I call "pushNotification.register" only one time...
javascript,parse.com,push-notification
No hook that I'm aware of, but you could run all of your pushes through one place in your code (either client or a cloud function), and do whatever post-push work you want to do there. Presuming JS and advanced targeting, it could look like this: function pushToInstallations(query, data) {...
java,android,push-notification,android-c2dm
I think you are getting and process your messages @Override protected void onMessage(Context context, Intent intent) { handleMessage(context, intent); } When App send request to google for registration of device I don't know very well but some times google returns message so if you are parsing your messages and Intent...
ios,objective-c,push-notification
You are using the API wrongly. First of all the Push Notification API has changed after iOS 8.0. My answer will assume that you want to still supporting iOS 7.x and later // Checks if the application responds to the API introduced in iOS 8. if ([application respondsToSelector:@selector(registerUserNotificationSettings:)]) { //...
ios,security,sdk,push-notification,bluemix
I understand your concern. To address all your questions: -You must have the app secret on the Client side in order to authenticate with MAS and use the Push service (Push relies on MAS auth) -We recommend implementing your own form of security to prevent a malicious user from easily...
ios,objective-c,push-notification
I've been struggling with the same task in my messaging app. We wanted users to see the message right before user taps the notification. What we faced with: The payload size limitation. iOS 7 can have only 256 bytes for payload single silent notifications will not start an app, if...
It is generally incorrect approach, you should not rely on push notifications, user may switch them off or due to some reasons they may not be delivered. Instead you should get new data always from your server. Read from the Apple Push Notification Service Guide: Important: Delivery of notifications is...
android,parse.com,push-notification
Ok, so if you want to send the push to a single user and you are saving ParseUserName to the installation table you can use this code. ParseQuery q1=ParseInstallation.getQuery(); q1.whereEqualTo("owner", buddy); ParsePush push = new ParsePush(); push.setQuery(q1); push.setMessage("Hey its message"); push.sendInBackground(); Where buddy is a String with the ParseUserName...
parse.com,notifications,push-notification,cloud,push
From the Parse.com FAQs: The request limit is calculated on a per-minute basis. For example, if an app is set to 30 requests/second, your app will hit its request limit once it makes more than 1,800 requests over a 60 second period. If your app hits its request limit, your...
android,parse.com,push-notification,channels
(Assuming Android) You're probably after ParsePush.unsubscribeInBackground....
android,push-notification,google-cloud-messaging
It's explained in the Google documentation https://developer.android.com/google/gcm/gcm.html#s2s This is how these components interact: Google-provided GCM Connection Servers take messages from a 3rd-party app server and send these messages to a GCM-enabled client app (the "client app"). Currently Google provides connection servers for HTTP and XMPP. The 3rd-Party App Server is...
laravel,parse.com,push-notification
You have to delegate the Parse itself to send your push notification instead of using your web server (more secure). So, you can manage this delegation via writing a cloud function in Parse backend, and call this cloud function from your web server. From links in comment section of post,...
ios,xcode,swift,parse.com,push-notification
Swift UIApplication.sharedApplication().applicationIconBadgeNumber = 0 Objective-C [UIApplication sharedApplication].applicationIconBadgeNumber = 0;...
windows-phone-8,parse.com,push-notification,cordova-plugins
Finally found the answer. I have remove old plugin and install https://github.com/cookys/parse-push-plugin and add below code in App.xaml.cs file // Parse initialization ParseClient.Initialize("APP_ID", ".NET_KEY"); this.Startup += async (sender, args) => { ParseAnalytics.TrackAppOpens(RootFrame); await ParseInstallation.CurrentInstallation.SaveAsync(); }; It worked for me. :)...
php,ubuntu,push-notification,composer-php,pushwoosh
Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. If you are a PHP developer by profession I really recommend getting into composer, you will love this peace...
google-chrome,push-notification
Use a slash before the name of the manifest file. The slash denotes that it is has to pick up the file from the root of the domain. <link rel="manifest" href="/manifest.json"> ...
Facebook & Twitter uses Push Notification to notify the users. You need to implement push notification for it. If you have feature which is local to the app then you can implement Local Notification. Reference link for both ...
php,android,push-notification,android-gcm
there is a param time_to_live which you are setting while sending. value is in seconds (below one minute only) $fields = array( 'registration_ids' => $registration_id, 'data' => $data, 'time_to_live' => 60 ); You can use the time_to_live parameter in the send request to specify the maximum lifespan of a message....
android,android-studio,push-notification,location
Yes, this is entirely possible, as long as I'm correctly interpreting what you are asking. To accomplish this, you would send the GCM push notification to all of your users (unless you had a way, server-side of filtering some of them out). Then in your application, instead of just creating...
android,push-notification,android-gcm,android-pendingintent,google-cloud-messaging
First Method : Instead of below line : PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intentOpen, 0); change it to this : PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intentOpen, PendingIntent.FLAG_UPDATE_CURRENT); Second Method : int iUniqueId = (int) (System.currentTimeMillis() & 0xfffffff); PendingIntent contentIntent = PendingIntent.getActivity(getApplicationContext(),iUniqueId, intentForNotification, 0); ...
ios,swift,push-notification,uialertview
You could do something along the lines of: Create a new class which is an alert presentation manager Create an instance of this class when you receive a notification Move all of the alert logic into that class The app delegate posts the newMessageReceived notification and passes the presentation manager...
android,notifications,push-notification,android-notifications
I am not very sure, but you can try something like this: if (android.os.Build.VERSION.SDK_INT > 20) { // I am not sure of this method remoteViews.setTextColor(R.id.text, Color.WHITE); } ...
ios,node.js,push-notification,apple-push-notifications
Apple says in Local and Push Notification Programming Guide and Troubleshooting Push Notifications Delivery of notifications is a “best effort”, not guaranteed. It is not intended to deliver data to your app, only to notify the user that there is new data available. Updated: The problem is that Apple closes...
android,notifications,push-notification,android-pendingintent
Use a "launch Intent" for your app, like this: PackageManager pm = getPackageManager(); Intent launchIntent = pm.getLaunchIntentForPackage("your.package.name"); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, launchIntent, 0); Replace "your.package.name" with the name of your package from the Android manifest. Also, you should remove the special launchMode="singleTask" from your manifest. Standard Android behaviour will...
ios,json,notifications,push-notification,apple-push-notifications
Without code that actually sends a notification it is not clear totally where is the problem, because if you use some library or wrapper it may add aps entry itself. Right now, you should continue sending notifications as in the first example and you will also get them in the...