I want to implement an application where a user receives a notification when some other user has done something. I don't want to user Push Notifications for that, because this information is only relevant, when the application is opened.
I thought of using Server-sent events. According to caniuse EventSource is not supported on Android lower then 4.3.
Does anyone know something about the support of this cool feature in Phonegap / Cordova? Or a plugin which provides this functionality on Android as well? iOS seems to be no problem.
I'm using Cordova 3.1.
Thanks!
You can have a look at this EventSource polyfill library:
https://github.com/Yaffle/EventSource
It's only supported on the Android browser (lower than 4.3 at least) if you add 4k of padding after each message. Perhaps you can also try implementing long polling? It might be a better solution instead of eventsource with 4k padding.
You can read more on this topic here:
https://github.com/Yaffle/EventSource/issues/14
I solved this issue by using Web-Sockets and a plugin for older Android devices in my Cordova application. The Phonegap WebSocket Plugin provides the same API like the Javascript W3C standard and can therefore be used without any issues on iOS, Android <4.3, and Android 4.3+.
Please note, that we had to use secure Web-Socket connections (wss://) to get it working with 3G connections as mentioned here.
Related
I currently have a VOIP app using Ionic 4, WebRTC, Socket.IO with a very lightweight node.js backend. It is working really well, and is currently using normal push notifications for calls. Which has its limitations.
My issue is that I want to mature the push notifications to fit more properly with the standard VOIP native look and feel. More specifically I need the ability to receive phone calls using the native call interface so I can get features like ringtones, ending/accepting calls, and answering with bluetooth devices. So on iOS this is pushkit, and on android not 100% sure what this is. I have looked at the following libraries and so far each has had there issues. My main concern is most of them are not compatible with the newest version of iOS 13, which has some VOIP changes in it.
https://github.com/WebsiteBeaver/CordovaCall
https://github.com/Hitman666/cordova-ios-voip-push
https://github.com/Taracque/cordova-plugin-voippush
Really my big question is this, has anyone successfully built a project using Ionic 4 and the latest version of iOS/Android that captures the look and feel of a native phone call using push notifications?
Links to examples would be really appreciated.
Thanks,
Bob
I have a phonegap/cordova application and I need help.
The app connects to my client's WordPress sot via REST API to pull subscriber's info and use it to unlock features.
ita working flawlessly on my end (android and ios) however on my client's ios phones, it doesn't seem to work.
any ideas as to why it isn't working on their end and works on all my devices?
Thanks!
Make sure they haven't activated the option that allows connection to a whitelisted set of websites only. Anyway, this issue you are reporting is getting more and more common in the recent weeks, it seems Apple has introduced something new to bother developers (even more)? What iOS version are they using?
There are some issues in the latest version of iOS 11.3, that causes this type of issue. Also do check whether URLs of all the REST APIs given, must be of the the cloud or server on which its hosted.
It can be one of the issue done by mistake.
I am analyzing phonegap usage for 4 mobile apps which will be created for
iOS (iPhone & iPad 4.2.1+)
Android (2.2+)
Blackberry(5.0+)
Windows phone (7+)
I could not find native support for push notifications in phonegap. Though I could google for push notification support for iOS and Android using different frameworks like pushwoosh and urban air.
Is there a common framework which can address push notifications for all the above mentioned platforms?
By now, there's a Push Notification Plugin for Cordova/Phonegap available: Cordova Push Notifications Plugin.
It currently supports Android, iOS and Windows Phone 8.
I know that it is still not the common framework you wished for, but at least it accommodates these 3 platforms, which means you don't have to deal with separate plugins for each of these platforms anymore, as it's been the case before.
There is no native support in phonegap for push notifications. Since these vary by platform, there are plugins, though.
You'll have to find a plugin for each platform you want. Here's a plugin for Android: https://github.com/marknutter/GCM-Cordova
and here's one for iOS: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/PushNotification I didn't find plugins for Windows7 or Blackberry, but all I did was a cursory search.
As mentioned above, there are services that provide some level of cross platform compatibility and provide server side APIs, so that you can send push to devices via a REST call (or something similar). These services also may provide some level of phonegap integration (via plugins).
Here are the services I have found that support the 4 platforms you mentioned:
Urban Airship: http://urbanairship.com/
Pushwoosh: http://pushwoosh.com/
Xtify: http://xtify.com/ (now an ibm company, here's the platforms they support: http://developer.xtify.com/display/sdk/Download+the+IBM+Push+Notification+SDKs )
I would use the Urban Airship plugins for Android and iOS.
http://urbanairship.com/lp/urban-airship-phonegap-plugins/
As an alternative to push notifications you may keep a streaming connection open and receive your notifications there.
Obviously it is required that the application is kept alive for you to receive such messages.
If you think this is a viable solution for your needs you may try Lightstreamer: it works with PhoneGap on the cited platforms without the need of any plugin.
If interested take a look here: http://blog.lightstreamer.com/2012/08/lightstreamer-in-phonegap-app.html
[disclaimer: I'm a developer # Lightstreamer]
I'm about to start on a new web application project where I need to support iOS, Android and Windows mobile 7. Is there a framework that will support all three?
In the past I've used Sencha Touch for iOS and Android, but it would be nice if there was a framework for all three systems.
I would like it to be as native looking as possible since this is a demand from the client.
I will use PhoneGap for this. You can refer official PhoneGap site at http://www.phonegap.com/
It supports six platforms which includes ios, android, blackberry, windows, symbian, palm os..
You can refer complete chart here for different features in different mobile os http://www.phonegap.com/features
You can see for Windows its still coming soon.
https://build.phonegap.com/
However they are updating with Bada & MeeGo..
W3C has a list of mobile web app best practices. Please check this link
http://www.w3.org/TR/mwabp/
I hope this will help you in designing a mobile web applicaiton.
Although still in alpha you may want to consider using jQuery Mobile http://jquerymobile.com/ for the UI. It does have some WP7 support, but expect this to get a lot better after the IE9 mobile/Mango update.
Has anyone tried before using OpenLayers in Android ? How did that go ? Was it accessed through the browser at a certain address or embedded in a local stand alone android application using WebViews ? , or other approach.
If any references related to this subject come to your mind please add them here.
Thanks
Small update on the topic - currently released version of OL supports mobile devices.
Current version of OpenLayers(2.10) doesn't support mobile browsers. New version(2.11) is very close to release though and you can enable support for mobile devices if you include the development version of OpenLayers from trunk. It definitely works if you access it as usual webpage and should work if it's embedded in WebViews.
You can try it out yourself here: http://openlayers.org/en/latest/examples/
Just type 'mobile' in search field and you'll get couple of example where you can see how mobile navigation, editing, etc. works on Android and iOS.
Yo can try with OpenLayers latest Mobile Version (http://openlayers.org/en/latest/examples/mobile-full-screen.html) for an html project and embed the page in Mobile App with Apache Cordova (http://cordova.apache.org/)
To my knowledge (no such device owned), on Android 3+ devices a page like http://openlayers.org/dev/examples/mobile.html will work straight out-of-the-box when opened in the stock browser. As mentioned, since OL 2.11 mobile device multitouch events are supported, they have also provided a jquery mobile & geolocation demo which works great on android.
For the majority of android 2.x devices, you will need to deliver your own webview container including a polyfill such as WMP if you want spread & pinch zooming to work.
Otherwise you're only left with using the zoom buttons - which is not always preferable given the small size of many touch screens.