Can the mobile device receive push notifications without connecting it to the Internet ?
I basically wish to create a local network and allow mobile devices to receive push notifications locally only, without the need to connect to the Internet (like in phonegap/cordova).
You will have to build your own push mechanism for push to work in local network. one simple way of doing it could be polling the local server at specific interval (periodic pull).
Conventional push mechanism in android such as GCM, requires internet (google servers) to be accessible.
Related
I am developing an android application & have implemented the GCM push notifications.Everything is working fine.I am sharing the internet connection of my PC in my android phone.I have a proxified net so either I have to connect VPN in my PC & then share that connection in the hot spot or I can share the normal connection & then connect VPN in my android phone.In the first case I'm able to receive the push notifications but in second case I'm not able to receive the push notifications.All other applications works fine in both the case like Whatsapp, Facebook etc.Why its not working for my application?
Everyone in my college uses the second method & I want them to be able to use my application.Help please?
Through process of elimination.
I have managed to get Join by joaoapps, which uses GCM pushes, to work with one small trick.
Use a VPN app with app filter capability (Such as VPN Client Pro, which is what I tested it on, but OpenVPN for Android might work too) to stop Google Player Services (com.google.com.android.gms) being tunneled through VPN connection (not necessarily need to filter your app).
I haven't had any problem sending/receiving pushes afterwards.
Good luck!
I'm looking for a non "cloud" push notifications framework that will allow us to push notifications from our servers to mobile devices (mainly Android and iOS is optional).
Using cloud services it not possible since both the server and the client can be in a local network without internet connectivity.
Is there any framework we can use (server side is .NET)?
Thanks
For iOS this is not possible since every notification has to go through Apple's push notification server. More details on that can be found here.
One thing you could do is using the Background Fetch feature introduced in iOS 7 to repeatedly poll a server in the background and show Local Notifications in case anything new has been found in the server. This wouldn't be instantaneous though but rather have any indeterminate time lag.
I want to have an active service on my android phone.
This server will be available from clients in my local network.
Communication can be any (for example a rest api service on android)
In other words I want my service to handle external push notification but from local network not GCM.
What are know approaches to achieve this?
I am working on an Android application which requires a server. One component of the application is used by people who do not have internet connection. But still I want to interact with the server. Is there anyway to send messages to server without internet connection? Can we send SMS to server and if yes how? I have read SMS gateway on the net but I failed to understand it.
There are no Android devices without internet connection, they need one at least to connect to Google Play to download your application.
You might have devices that have no connection for some time, then sending a SMS is theoretically possible but will cost money to the user so he is likely to disapprove this approach.
To receive the SMSs sent by devices, look for a "sms receive gateway", you will find companies that offer you an API to send and receive SMSs from your server. If you don't expect a huge traffic, you can have a phone at your home with a Wifi connection that receives the SMS and sends them back to you server.
Services like Twilio and Plivo will forward SMS messages to your server. However, I don't know of any free services for this (and I think Twilio may not be available in certain geographies).
This approach will allow phone users to communicate with your server using SMS (via one of these providers). While your phone user will not need to be connected to the internet (but they will need to have cell service that allows them to send an SMS), your server must be connected to the internet so that it can receive messages from the provider (Twilio or Plivo, for example).
I am developing an application with an internal server (andro php),and I would like this application to send notifications to users that are connected to this network.
This network has not internet access, it's just a local network.
I am familiar with c2dm and xmpp, but these are only valid for when I have internet connection (in this case is a LAN without internet).
Anyone has any idea of what I propose?
You can broadcast data over the wifi. Essentially, this allows you to send data without knowing who will receive it. If your app (running on another phone) is expecting certain data, you can register a BroadcastReceiver to listen for the UDP packets. Examples can be found here, here, and other places on the web.