w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

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

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

What does "-1" means in the delivery day and delivery time of return data from UPS API
The answer will depend on the API you're using: Shipping and Rating Business Processes Address Validation API Address Validation Street Level API Locator API Pickup API Rating API Shipping API Time in Transit API Visibility Business Processes UPS Quantum View® API Tracking API UPS Signature Tracking® API International Trade Business Processes UPS TradeAbility® API You are probably better off referring to the UPS Developer Website and the relevant documentation, starting with the PDF of their "Developer Kit — User Guide"

Categories : PHP

How to identify which SMS has got Delivery report in Android
You need to put the data you need into the PendingIntent that will be broadcast when the delivery completes (or fails). When doing this you need to make sure that you create a unique PendingIntent for each message (you can do this by setting a unique ACTION on the Intent). Here's an example. Instead of this: PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, new Intent(DELIVERED), 0); Do this: long messageID = ... // This is the message ID, ie: the row ID in the SQLite database that uniquely identifies this message Intent deliveredIntent = new Intent(DELIVERED + messageID); // Use unique action string deliveredIntent.putExtra("messageID", messageID); // Add message ID as extra PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,

Categories : Android

Android SmsManger Delivery report
Create your delivered pending intent with an extra that you will use to identify the message sent. Intent deliveredIntent = new Intent(DELIVERED + id); deliveredIntent.putExtra("id", id); // Add some unique id as an extra PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0, deliveredIntent, 0); registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context arg0, Intent arg1) { lonng messageID = arg1.getLongExtra("id", -1L); if(id!=-1) { // you got your sms delivered with the id } } }, new IntentFilter(DELIVERED+id));

Categories : Android

Urban Airship Android push getting "This app is not configured for iOS push"
What you have is correct, however you need to include the following HTTP header: Accept: "application/vnd.urbanairship+json; version=3; For beginner Ruby developers, it can be achieved like this: req = Net::HTTP::Post.new(uri.path) req["Accept"] = "application/vnd.urbanairship+json; version=3;" When, e.g., posting a notification to UrbanAirship.

Categories : Android

How to simulate driving a route in real device
Search Google Play for Mock location apps. This will allow you to simulate the GPS fix. I've used this one in the past.

Categories : Android

"no route to host" on device on getOutputStream() - connected wirelessly
Well well - disabling the (WPA-PSK) Encryption on the router I connect alright. I would accept as an answer a (programmatic) work around EDIT : entering the URL into the android device's browser I do see the doGet() page. I reenabled all firewalls - the only thing that makes a difference is toggling encryption on and off

Categories : Android

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

Get device token for push notifications after app was deleted
From Push Notification Programming Guide An application should register every time it launches and give its provider the current token. It calls the registerForRemoteNotificationTypes: method to kick off the registration process. 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 application at least once for it to receive notifications again. If the user restores backup data to a new device or computer, or reinstalls the operating system, the de

Categories : IOS

How to push updates to IOS device through TCP/IP socket from server?
Your proposed solution will only work if the app is actually running. (And perhaps, crippled, if the user let's it run in the background - see Apple's multitasking in iOS documentation for details). When running in the background, you won't be able to bring up a UI for the user to see, and you won't be able to provide a message or badge in the built in iOS message center. It will also be a lot of work to implement. A common approach is to use Apple push notifications, and let the payload be an identifier, which your app can use to retrieve the actual (larger) payload from your API. Using Apple push notifications has a lot of benefits, such as being tightly integrated in the OS. As for your actual question: One solution is to poll the DB from the Java code. But it really depends on where

Categories : Java

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

Change rails login route based on mobile device?
I would suggest something like this: before_filter :authorized? def authorized? if mobile_device? unless user_signed_in? redirect_to '/tech_signin' # or whatever you want end else authenticate_user! end end def mobile_device? !!/(android|bbd+|meego).+mobile|avantgo|bada/|blackberry|blazer| ... /i.match(request.user_agent) end

Categories : Jquery

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 sent successfully using JAVAPNS but not received in client device
According to Apple Documentation: Important: 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. In other words, you are lucky to have one (the latest) push notification delivered. Any additional delivery is a bonus. To deliver data, simply notify your app, then have your app download the data from the server.

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

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

android device does not show up under Android Device Chooser
Make sure you are using the correct android API and SDK version compatible with your device's version in the code. (In the android SDK for eclipse this is in Android Manifest.xml) If the two don't match up, then they won't show up when you try to test it on the device.

Categories : Android

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

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

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

Issue in sending APNS push notifications to multiple device tokens in PHP
Try this its work for me. while($res = mysql_fetch_assoc($sql_device_token)) { $deviceToken = $res['devicetoken']; //Pushnotification($deviceToken,$message); /*#################################### Push Notification ####################*/ $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', 'ckipad.pem'); stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase); $fp = stream_socket_client( 'ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT, $ctx

Categories : PHP

How can i create new virtual mouse device on my android device?
From what i see you should create your own virtual device with your own driver , Fortunately there is an easy way to do so using uinput There is an easy guide for getting started here , and this question can be a good guide to write your own virtual driver. I thought this can only be done if you have access to kernel , and create your own ( i dont think modifying user rom is a good solution ) , but after reading this , it is clear that Uinput can run in user mode. Note : I agree with recommendition to use touch events ; as this solution is more common and makes sense , check second suggestion is this answer

Categories : Android

Android Device device shows Unknown (?????) in eclipse
You need to add vendor ID to android.rules file. Please follow this link to know about particular vendor id & how to do this. http://developer.android.com/tools/device.html

Categories : Android

How can i Write data from Android device on c2540c device?
Might this solve your problem?

Categories : Android

How to connect Android device to an iOS device over BLE (Bluetooth Low Energy)
I've written a simple working example, well relatively simple, and included it open-source on Github: https://github.com/GitGarage. So far it has only been tested with an Android Nexus 9 and an iPhone 5s, but I presume it would also work with a Nexus 6 and various iPhone types. So far it is set up explicitly to communicate between one Android and one iPhone, but I presume it is tweakable to do much more.

Categories : Android

How to track the device location (iOS and Android) device using Phonegap
The first thing to say is that creating a Phonegap app that receives location updates while running in the background is entirely possible, but not trivial. I've done it myself and released apps on both the Android and iOS platforms. If you need accurate and regular position updates, I'd suggest using the GPS receiver on the target devices. In Phonegap, you can do this setting the "highAccuracy" flag when requesting position updates. The watchPosition() function will deliver new position information as and when the device receives updates from the GPS receiver, so you use it something like this: navigator.geolocation.watchPosition(successCallback, errorCallback, { enableHighAccuracy: true, timeout: 10000, maximumAge: 0 }); See the Phonegap geolocation API documentation for more d

Categories : Android

What is difference between android device id and device token?
Both are completely different. Secure.ANDROID_ID A 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.) And GCMRegistrar.register(this.context, CommonUtilities.SENDER_ID); Gives you the registartion id of device from GCM. By which, GCM uniquely identifies the device. Another difference is Secure.ANDROID_ID may change when factory reset is performed on the device. And Registration id gets changes periodically. And if you are asking about CommonUtilities.SENDER_ID then This is your project number, and it will be used later on as the GCM sender ID

Categories : Android

does the target SDK option in android SDK have to be the same as the test device Android version? (Android SDK basic)
You should set the minimum SDK required to whatever API is required for all code to work correctly. Some API methods are not available until later versions and some have been deprecated in current versions (though the deprecated methods should still work as expected). No devices that I know of require API 1-3. Most devices all have 8 or higher. The target SDK is the code you are targeting when you program so say if new APIs have become available and you are using them in your code then you won't get a compile time error saying the method/class doesn't exist. You should also be aware that if you target a higher API then will be running on the device, you may have run time errors of methods/classes not existing.

Categories : Android

Access one android device to another android device
It is not mandatory. You can also implement this as a server client solution, where the data transfer between the clients takes through the server. If you didn't try it yet, that will be a tedious task for the particular solution. Both side should keep services to monitor and transfer data. But if you intent a real time solution, I'll prefer Bluetooth for faster response.

Categories : Misc

Android + JDBC: No route to host (it works on the desktop, why not on android?)
It's not uncommon for wireless traffic to be restricted due to corporate security policies. Verify that you can connect to DRDA (tcp port 446) on the IBM i from the device on the wireless network. See TCP/IP Ports Required for iSeries Access for Windows for more information. JTOpen/Toolbox has a proxy mode if security requirements prevent allowing direct access to the IBM i. The lightweight version of the JTOpen/Toolbox jar's are also more suited to installation in a cpu and memory restricted environment such as an Android device. The full JTOpen/Toolbox can be run as a proxy server as follows: java -cp jt400.jar com.ibm.as400.access.ProxyServer -verbose -port 3470 Add the proxy server option to your connection string: jdbc:as400:<url>;proxy server=<proxy server addre

Categories : Java

android application directly login using saved account credential in android device
This is an in-depth look into how you can authenticate based on the users Android credentials, has an example of how things work and how the UI should be try this use some refrence api also available link You can get help from android developer blog link

Categories : Android

Phonegap android project works on emulator and in some devices but not in a 2.2 android device
Thanks to @Raoul George i discovered what was the problem. When you make: var visitedList = JSON.parse(window.localStorage.getItem("visited")); in an android 4 nothing happens, but if you work with an android 2.2 you need to be sure that window.localStorage.getItem("visited") has a value.

Categories : Android

Android JUnit testing while executing OpenCV functionality on PC instead of android device
To separate this two tasks, you need to realize (for example) REST client on android and server on the desktop. Client should connect to server Server pings client and client sends him screenshots. Perhaps, you will need to create separate thread in test. Client should do the following: When you need to take screenshot: Object res = null; res = new File(takeScreenShot(solo)); Then public static String takeScreenShot(Solo _solo) { solo = _solo; String dir = "/sdcard/Robotium-Screenshots/"; String fileName = "screenshot"; java.io.File file = new java.io.File(dir, fileName); if (file.exists()) { file.delete(); } solo.takeScreenshot(fileName); solo.sleep(2000); return "/sdcard/Robotium-Screenshots/" + fileName + ".jpg"; } You need

Categories : Java

Wrong build being deployed on Android device using Visual Studio 2012 Xamarin.Android
I have no idea why it does this, I had this issue before. I also noticed that the device log was somewhat behind (ie, at 3.30pm, the last record on the device log was 11.00am). Uninstalling the app from the device and re-deploying it seems to correct it. Note: I had this issue in VS, didn't check with XS. I would look at the difference in your deployment settings in VS and XS (I think it may have something to do with the Fast Deployment option).

Categories : Visual Studio 2012

Declared Shared Preferences in Android causes error when run on Android device?
SharedPreferences value = getApplicationContext().getSharedPreferences("Values", MODE_PRIVATE); SharedPreferences.Editor editor = value.edit(); Move this two lines to the function Store. In your case When the class is created it will try to access the context of the application using getApplicationContext function by the time the context wont be created so wait for the onCreate to happen and then save these two values. Hope this will help. It is clear from the crash log that the context is not created. See this line Caused by: java.lang.NullPointerException 08-29 01:42:59.390: E/AndroidRuntime(29985): at android.content.ContextWrapper.getApplicationContext(ContextWrapper.java:101) Do some thing like this instead. SharedPreferences value; SharedPreferences.Editor editor; @Overri

Categories : Android

Android : Capturing HTTP Requests with non-rooted android device
You could install Charles(an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet) on you PC or MAC. Config steps: Let your phone and PC or MAC in a same LAN Launch Charles which you installed (default proxy port is 8888) Setup your phone's wifi configuration: set the ip of delegate to your PC or MAC's ip, port of delegate to 8888 Lauch your app in your phone. And monitor http requests on Charles.

Categories : Android

Having issue on Real Device using vector image in android. SVG-android
On newer devices that have hardware rendering turned on by default, you need to explicitly turn on software rendering. imgView.setLayerType(View.LAYER_TYPE_SOFTWARE, null); I suspect this is probably your problem.

Categories : Android



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