w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
how to send push notification to a specific device without creating channels using parse.com?
Parse lets you send push messages through either channels, or direct to installations (devices). What's important to realise is that a single user may have multiple installations associated with them - for example, they might own an iPhone and an iPad. You will want to send the push message to both. It is hard to tell from what you've posted what's going on, as you've merged two view controllers together. I assume that in your second view controller user is the user you are trying to send the push notification to? How are you obtaining the PFUser object that represents the friend? Maybe share that code and you might get some more help.

Categories : IOS

For Apple push notification, can I send without device token?
You can not send PUSH notification without enabling on appId and with out device token. please check programmer guide of apple developer http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html

Categories : IOS

UDID for Push Notification instead of Device Token?
No, you can only use the Device Token. The push notification server API will only accept Device tokens and will also check if you are allowed to sent a notification to that installation by checking the Certificate. The Device token is unique for your app on a specific device. If the user has multiple device he/she will also have multiple device tokens (one for each install of your app). When the user deletes you app and reinstalls it the device token can also change. Also the UDID is no longer useable by developers, Apple has restricted the use of the UDID and you can longer use the UDID anywhere in you code.

Categories : IOS

Control push notification device registration
There's nothing wrong in the way you are registering to APNS, but you can do it more efficiently. Apple suggests that you register to the APN service every time the app is launched (and not only on the first time it is launched), because theoretically the device token might change (though it practice it almost never does). An application should register every time it launches and give its provider the current token. By requesting the device token and passing it to the provider every time your application launches, you help to ensure that the provider has the current token for the device. If a user restores a backup to a device or computer other than the one that the backup was created for (for example, the user migrates data to a new device or computer), he or she must launch the

Categories : IOS

Android Push Notification from device to other devices
Check out the official tutorial on the Android developers site: http://developer.android.com/google/gcm/notifications.html#upstream You can just upstream a message to the Google cloud and it will be sent to other devices in the same notification group. I'd suggest that you always start with the official tutorials first and then move on to third-party blogs, it's just easier that way.

Categories : Java

Android app pop up when a GCM push notification is received on the device
If I understood correctly, what you want is to start the app directly instead of create the notification. In order to do that you just need to replace the call to generateNotification() with this code: Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("your.package.name"); startActivity(LaunchIntent); Is that what you need?

Categories : Android

Apple push notification Vs. Parse
I didn't understand what are you trying to ask. You can use Apple push notification service for sending remote content. With Any content related to your App. Check RemoteNotifications for details. Parse is also using the Apple's push notification service. Edit: For implementing your own servers for push notification check this tutorial : Push Notification Services

Categories : IOS

Android push notification- No device registred in the server
I had issues when I tried that demo because my tomcat was running locally, but the emulator has like a "virtual router" per say so I can't access my tomcat server just using http://localhost:8080 from my android app. I'd have to use the IP of my machine running the Tomcat server, so it'd be like http://[my-machine's ip]:8080/gcm-demo where [my-machine's ip] is something like this 192.168.1.10 NOTE: You can get the IP by running ifconfig on Linux or MacOS, or ipconfig on Windows. the ip adress is the value of IPv4 field.

Categories : Java

How to get device token id of windows phone for push notification?
You can use the DeviceExtendedProperties - byte[] myDeviceID = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId"); string idAsString = Convert.ToBase64String(myDeviceID);

Categories : Windows Phone 8

Push Notification service is not working, When device is switch off
Apple Push Notification service includes a default Quality of Service (QoS) component that performs a store-and-forward function. If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available. Only one recent notification for a particular application is stored. If multiple notifications are sent while the device is offline, each new notification causes the prior notification to be discarded. This behavior of keeping only the newest notification is referred to as coalescing notifications. If the device remains offline for a long time, any notifications that were being stored for it are discarded.

Categories : Objective C

Parse push notification notify twice for Android
Yes, replace : PushService.setDefaultPushCallback(this, YourActivity.class); to : PushService.startServiceIfRequired(this); Parse BroadcastReceiver no longer receive notifications. https://www.parse.com/questions/how-suppress-push-notification-from-being-displayed Android - Show Custom Notification without default notification- Parse.com

Categories : Android

Send push notification according to mobile OS
What I would do and what I have done. If you are storing the ID's in the database it should be very easy to distinguish the two. If you are keeping them in the same table but different fields then just use a different name for the columns. Save the ID's according to device type. Just don't have a generic column for Push Notification ID use two. I save the device ID according to type and the user's member ID with it. So even if they register with multiple devices it will send it to all their devices android or ios. Or I can just select all and send to every registered user. Here are some examples. One example using multiple id columns and one using a single id column with another column for type. gcm_id and apn_id as column names in the DB where the keys are stored one for android and o

Categories : PHP

How to send Push notification to a particular user using GCM
Checkout this link to implement GCM for your android powered device. Android GCM Push Notification Demo Also you need to implement a server side implementation to configure you server with GCM compatible. Hope it will help you.

Categories : Android

Fail to send push notification
SendGcmNativeNotification is marked as internal in Service Bus SDK 2.1. As for your issue, SendGcmNativeNotificationAsync() doesn't return actual result, it returns a task. The following is an example how you would consume it using c# 5 syntax: private static async Task<NotificationOutcomeState> CallNotificationHub() { var hubClient = NotificationHubClient.CreateClientFromConnectionString( "<your connection string with full access>", "<your notification hub name>"); var outcome = await hubClient.SendGcmNativeNotificationAsync( "{ "data" : {"msg":"Hello from Windows Azure!"}}"); return outcome.State; } CallNotificationHub().Wait();

Categories : Azure

Push Notification send and receive in iOS?
You cant send the push notification using UDID, you can use the Apple service for sending the push notifications via device-token and pem file which is explained in below link. http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1 Any push notification that isn't delivered immediately was queued for future redelivery because your device was not connected to the service. "Immediately" of course needs to take latency for your connection into account. Outlying cases would be beyond 60 seconds as APNs will time out at that point. Still you have any query then you can refer the below link http://developer.apple.com/library/ios/#technotes/tn2265/_index.html

Categories : IOS

Send Push notification to specific Users
Using Android GCM is advisable. The complete reference to GCM is available at http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/ Step by step GCM development is given in there. It is really very helpful. Hope this is helpful to you.

Categories : PHP

Send Push Notification to APNS through proxy
If your proxy support CONNECT method you need to connect first to the proxy then ask the proxy to connect you to apns server and finally switch up SSL. $apns_settings = array( "host" => 'gateway.sandbox.push.apple.com', "port" => 2195, "certificate" => 'ipad.pem', "passphrase" => '', ); $proxy = 'proxyhttp:8080'; $context_options = array( 'ssl' => array( 'local_cert' => $apns_settings["certificate"], 'passphrase' => $apns_settings["passphrase"], 'peer_name' => $apns_settings["host"], 'SNI_server_name' => $apns_settings["host"], ), ); $stream_context = stream_context_create($context_options); // connection to your proxy server $apns = stream_socket_cl

Categories : PHP

Android GCM push notifications - sending notification to a specific device instead of all devices
But It runs notification to all the devices instead of specific device Since GCM does not support sending a notification to all devices, this is not possible. GCM supports sending a message to a specific device, or to all devices registered to same user (if you use the opt-in user notifications feature). Here what is the meaning of 3rd party Application. This is defined on the very Web page that you linked to. You can tell this by reading that page, and seeing: 3rd-party Application Server: An application server that you write as part of implementing GCM. The 3rd-party application server sends data to an Android application on the device via the GCM connection server.

Categories : Android

getting warning messages while sending push notification to multiple iphone device
might seem like a dumb answer, but have you tried your firewall / iptables? Those errors without further information look like connection issues to me. First thing you need to resolve is the timeout problem.

Categories : PHP

Best practice to handle apple push notification when multiple users uses the same device
You can turn off receiving push notification pro-grammatically when user logs out of your app.If you did not turn off push notification pro-grammatically it will receive notifications since your device token is register with server(if your are online means connected with internet)

Categories : IOS

[Parse][Android] How to suppress push notification from being displayed when app is running?
If you use "alert" or "title" in your json data, the com.parse.PushService will intercept and display a standard notification. Rather create your own BroadCastReceiver and send the title as e.g. "header" in json. You can then control in your onReceive handler when and what to display. e.g. public class MyBroadcastReceiver extends BroadcastReceiver { private static final String TAG = "MyBroadcastReceiver"; @Override public void onReceive(Context context, Intent intent) { try { String action = intent.getAction(); String channel = intent.getExtras().getString("com.parse.Channel"); JSONObject json = new JSONObject(intent.getExtras().getString("com.parse.Data")); String title = "New alert!"; if (json.has("heade

Categories : Android

Parse Cloud Code: Can you pass objects in a push notification?
If you already have the class created and saved an object why not just send the object ID and query it asynchronously once the user goes to retrieve the push notification? The message object does not need to waste up space and be sent via push just a pointer is required. I'm in the process of implementing something similar and this is the route I plan to use.

Categories : Javascript

How can I send push notification to selected Users iphone?
I'd advise reading: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/CommunicatingWIthAPS.html#//apple_ref/doc/uid/TP40008194-CH101-SW1 If you're using a third-party system for providing the push notifications using Urban Airship for example, then their system will be set up to discriminate against particular UDIDs. Its certainly possible; implementation details will vary between different vendors.

Categories : IOS

IBM Worklight - How to send push notification from SharePoint server
The PushBackendEmulator.jar file is meant only for simulation purposes in the IBM Worklight Getting Started push notifications sample application (because there is no actual "push server" available). When moving to a production environment, you should use the adapter invocation service. You use your service to invoke the adapter procedure and send the push notification. You can also use polling instead of pushing (page 23). As for how to implement this on the Sharepoint side, there are all sort of guides on the web. This is outside the Worklight scope. http://msdn.microsoft.com/en-us/library/jj163784.aspx http://kniganapolke.wordpress.com/2009/12/29/call-sharepoint-web-service-from-a-php-script/ ...

Categories : Android

Send GCM notification to an offline device
A/c to documentation--- When a 3rd-party server posts a message to GCM and receives a message ID back, it does not mean that the message was already delivered to the device. Rather, it means that it was accepted for delivery. What happens to the message after it is accepted depends on many factors. If the device is connected but idle, the message will still be delivered right away unless the delay_while_idle flag is set to true. Otherwise, it will be stored in the GCM servers until the device is awake. And that's where the collapse_key flag plays a role: if there is already a message with the same collapse key (and registration ID) stored and waiting for delivery, the old message will be discarded and the new message will take its place (that is, the old message will be collapsed by the n

Categories : Android

Does receiving one push notification or multiple push notification have any different effect on battery usage?
I believe that sending ten notifications an hour will consume more battery than one notification an hour. The reason is that when each notification arrives, it will wake your screen to show you that there's a new notification, and that consumes battery.

Categories : IOS

How to save parse push notification message in local storage sencha touch?
You should make a store that uses local storage, then add a model when you get a push and sync the store: Ext.define('MyApp.model.Notification', { extend: 'Ext.data.Model', config: { fields: [ // notification fields ], proxy: { type: 'localstorage', id: 'notifications' } } }); Ext.define('MyApp.store.Notification', { extend: 'Ext.data.Store', config: { model: 'MyApp.store.Notification', autoSync: true, autoLoad: true } }); receiveNotification: function(notif) { var store = Ext.getStore('Notifications'), record = //create your model from notif store.sync(); }

Categories : Extjs

How do I send API push message with .Net / Parse.com? (C#)
Bellow code is running for push notification using parse in .net. private bool PushNotification(string pushMessage) { bool isPushMessageSend = false; string postString = ""; string urlpath = "https://api.parse.com/1/push"; var httpWebRequest = (HttpWebRequest)WebRequest.Create(urlpath); postString = "{ "channels": [ "Trials" ], " + ""data" : {"alert":"" + pushMessage + ""}" + "}"; httpWebRequest.ContentType = "application/json"; httpWebRequest.ContentLength = postString.Length; httpWebRequest.Headers.Add("X-Parse-Application-Id", "My Parse App Id"); httpWebRequest.Headers.Add("X-Parse-REST-API-KEY", "My Rest API Key"); httpWebRequest.Method = "POST"; StreamWriter requestWriter = new StreamWriter(httpWe

Categories : Json

Can we use GCM to send push notification wihout starting the app even once as broadcast receiver not working for android 3.0+
User will be shown permissions about your app, there is a way an application can start right after installation, and BroadcastReceiver work since API Level 1 to the latest API. But since API Level 11 (version 3.0) you need to use this. Intent intent = new Intent("com.mypackage.yourapp.custom.intent.action.ADDON_REQ"); intent.setFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES); sendBroadcast(intent);

Categories : Java

StackMob failing to send broadcast push notification because of "no C2DM ClientLogin token"
Well, based on the StackMob docs, you have to use the registration Id you get from Google in order to register for push in StackMob (by calling user.registerForPush) : Interacting with StackMob In the onRegistered callback of GCMIntentService you get the registration id, which is the last piece you need to start talking to stackmob. Check out the Push Docs for examples of how to use StackMob to register your device and start pushing. PushTokens StackMobPushToken represents the information needed to identify a device for push. You can construct them with the "registration id" you get back from registering your device with GCM. By default it assume GCM, but you can also work with C2DM or iOS tokens if you need to. Registering for push StackMob keeps a collection

Categories : Android

How can i send a notification from php server to the amazon kindle android device ?
Amazon Device Messaging is now available for the Kindle Fire series, forming an approximate equivalent to GCM available on more conventional Android devices.

Categories : PHP

Handle Push Notification like normal push notification in-app
I am not certain what you are trying to ask. But if you are already running your app and you receive any Push Notification, it all on you how you want to handle that in below function of your AppDelegate class. - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { UIApplicationState state = [application applicationState]; if (state == UIApplicationStateActive) { //Show alert message or whatever you want to do when you get any notification. } }

Categories : Iphone

How to get server notification(push notification) to client using vert.x java api
The callback function in registerHandler() receive message from server in Json form. You can get your custom message by message.notification where notification is your unique key that is to be set at server side.

Categories : Java

Intercepting push notification android c2dm from another application and using the notification in my app
First of all, c2dm has been deprecated for a year now. You shouldn't use it in new development, and if you have apps already using it, you should migrate to Google Cloud Messaging. In GCM, when you using the same credentials for differnt apps, you still get different registration ids for the same device. Therefore one app cannot receive the notifications sent to another app. You must send the notification from the server to the registration ids of both apps.

Categories : Android

Updated Push certificate and Apple Push Notification doesn't work
Did you build your app with the development provisioning profile and install the updated app on your device? If not, your phone probably still works with the production APNS environment. If you installed the app, did you register for push notifications and get a development device token? Finally, if you got a development device token and sent it to your server, are you sure you used the development device token when trying to push a notification to your device? Are you sure you used the development certificate and connected to the sandbox APNS server?

Categories : Iphone

Push notification not appearing in notification tray
Finally I got the issue and that was from server side. Might be one of the same case for others too.. aps = { alert = { dictioanry = { key = value; key = value; }; }; badge = 1; sound = default; }; Here I asked the php person to add body tag and I was able to get notifications in tray.. So for the people with same issue just check out if you are missing any key from the server side.

Categories : Iphone

Add a new notification when push notification recieves (not replace old one)
simple you have to change Notification id mNotificationManager.notify(1, notification); instead of 1 for more refer this Link

Categories : Android

How to get notification.alertBody in my app from a remote push notification?
Remote notifications run outside the sandbox the app is running in, so you can't capture the notification in the same way as local notifications, i.e. application:didReceiveLocalNotification. However, if the app is launched via the remote notification, you can capture the notification via the application:didFinishLaunchingWithOptions - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UILocalNotification *notification = launchOptions[UIApplicationLaunchOptionsLocalNotificationKey]; if (notification) { // do something with the notification.alertBody } else { // from the springboard } }

Categories : Iphone

When we send pdf as email through iPhone device then only screen page send not all pages why?
this is right code using this I can send all pages of generated pdf file as email.. if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init]; mailer.mailComposeDelegate = self; [mailer setSubject:@"A Message from CloudChowk"]; NSLog(@"file name %@",fileName); NSData *data=[NSData dataWithContentsOfFile:fileName]; // NSLog(@"data %@",data); [mailer addAttachmentData:data mimeType:@"pdf" fileName:@"myPDF.pdf"]; NSLog(@"mailer %@",mailer); NSString *emailBody = @"Patient Report"; [mailer setMessageBody:emailBody isHTML:NO]; [self presentViewController:mailer animated:YES completion:nil]; } else { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"F

Categories : Iphone

IOS Push Notification using c#
you can achieve this by using JavascriptSerializer. Here is a code sample using anonymous code declaration var obj = new { pushType = "Notification", notification = new[]{ new { notificationId = 1, notificationTitle = "Notification 1", notificationText = "You are reading your notification 1", notificationExpiryDate = "yyyy-MM-dd" }, new { notificationId = 2, notificationTitle = "Notification 2", notificationText = "You are reading your notification 2", notificationExpiryDate = "yyyy-MM-dd" }, new { notificationId = 3, not

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.