Browser-based mobile notifications - iphone

I would like to schedule alerts to the users to remind people of certain recurring tasks such as meet with dentist, clean trash etc. I want to do this using a browser based (HTML 5?) app which can run akin to a daemon process by leaving the browser window open, and warning the user against closing it if they try to 'x' it.
Is this possible at all? If so, how can one alert the user periodically on multiple mobile platforms (Symbian, iPhone, Android, WP7 etc.)

You can do this with Sencha Touch HTML5 Framework
with using PhoneGap together.

have a look at appcelerator and phonegap.

Related

Flutter application restart instead of resuming after some time when switch to other applications

Hi i am developing a flutter application and i am using getx statemanagment. The problem is when i put application in background and use some other applications like whatsapp,youtube,play a game or listen music, after some time when i resume my application from recents it restarts and all progress is lost.
I have already tried different solutions like moveTaskToback(true) with native android function call
Please help, I have almost finished my important application.
I'm not sure on why this happens, but some manufacturers have their own restrictions on apps running in the background. Nothing you can really do from a flutter perspective, the app lifecycle is the same on all devices.
Here is a link where they share some tips how to deal with this on Xiaomi from the users perspective.
https://dontkillmyapp.com/xiaomi
From the developers perspective, as you can read on the bottom of the article, the are no common workarounds known yet.

Best Platform for building iPhone app?

Im looking into writing a fairly simple iPhone app and need some advice on the choice of platform. I have the following constraints:
App Requirements:
The app should be able to receive strings via a wifi network, process these and then display either a message, or show a preset photo from the library, or change the background color (or any combination of these).
Once started the app will be running continuously on the device, and be a display only client (ie no user interaction on the device itself) - just processing instructions as received over wifi.
Speed: once the strings are sent to the device, the app has to respond quickly (either display image, change color or show preset text as soon as possible.)
My Current Situation:
No previous iOS development experience.
I need to do this within the next 2 months.
I am very comfortable with: HTML, JS, CSS, Python & PHP.
I am familiar with other languages e.g. C++ but have not touched these in a long while.
Question: Choice of Platform:
I know that the best choice would be to use the native iPhone SDK, but given my time constraints and knowledge of existing tech, could tools such as Appcelerator Titanium or PhoneGap be proficient for this kind of application?
Note: At this stage I do not foresee the app being listed on the app store, its meant for personal use only, although this may change in the future.
If it would be an option to load the images from a remote server instead of the local photo library and you being already familiar with HTML/JS/CSS/PHP, why not just make an Web-App that is running full-screen?
You can use your existing knowledge and you're saving money (no $99 license fee)
You might want to try TapLynx - it's possible to create a native app without any code.
I think you can do everything you want to do with Titanium. It even supports Sockets should you need to go to that raw of a level. Native iOS development is painful and hideous.
Appcelerator is glorious and fun :]

Android, Iphone app with JS and HTML

I have read some post about apps programming for Iphone and Android, but I have one question. Is it posible when there is a mobile website optimized for mobile phones, that I can create apps for Iphone, Android, Win 7 and Blackberry, that only statrts the browser as instance and display the mobile website? What do you think, is this ok? Do you have any ideas or examples for that kind of apps? I mean this is not an app, that should be has access to the hardware of the phone, only web app.
Thanks
Nik
This would work.
You could create an app that consists merely of a webview into which you load your content. The content could be loaded over the mobile network or be stored locally.
However most users (including yours truly) strongly dislike apps that merely present a single website to the user, because of the long delays if the content is loaded over the mobile network every time and because the UI is, in many cases, very different to what the he or she is used to from native apps.
Most users fail to see the need for a specialized app just to visit a website which they could as well keep as a favorite in their mobile browser. On the iPhone, you may even add favorite websites as icons on your homescreen, so there is no need for apps presenting a single website at all.
It's not only possible, such things are already done. One example I know of is cookd, a restaurant guide for Vienna. But there are some constraints; for example, cookd requires GPS data for the "Nearby" option; on my Android phone (HTC Legend), this is possible when I open the web page directly in the browser (the browser asks if I want to allow cookd.com to get this info); but the same webpage, running in an application that does nothing more than display the browser component, cannot do that. To fix that, they would have to build GPS reception into the app and forward this info to the browser component.
O'reilly has a fantastic article about this:
http://building-iphone-apps.labs.oreilly.com/
This is a little bit directed to iPhone only, but will give you a good overview about the topic and possibilities.

What are the limitations of coding web apps for the iPhone?

For instance, could a web app access the mic on an iPhone and transmit voice back to a server?
Or is it possible to build Safari extensions for the iPhone that can operate transparently on a web page? For instance, is it possible to build an extension that removed ads from Google result pages for the iPhone, without the user clicking any buttons to activate the ad-removal functionality?
You pretty much hit the main limitations.
You have no access to hardware that's not supported by HTML5 (geolocation is, but things such as acceleration and audio/video recording are not).
You can't build Safari extensions for the iPhone at this time, you can only use JavaScript like usual.
Some frameworks like PhoneGap make attempts to provide more hardware features via a native app container, but it appears Apple is trying to prevent those apps from going on the App Store, to some extent.

Launching a native application from a link of website on iPhone

I have a query regarding launching a native application from a link of website on iPhone.
I will explain.
Generally a web based application is used to work online without using any feature of iPhone device (such as GPS, Camera, Accelerometer etc.)
I have a iPhone specific website which performs many tasks online.
Now while keeping all the functionality same, I want to add a feature of taking a picture from iPhone in-built camera.
i.e. when user clicks a button on website "Take Picture", my native application should be launched, which will take a picture and do specific tasks..
How to capture a event of button click which is performed on website?
Should I use UIWebView or Safari?
I know that using URL Scheme we can launch Safari from native application.
But how to achieve the opposite as explained above?
All other functionality works great on website, so I don't want to convert the whole website into native application.
(Otherwise I will have to deal with web services). Only this functionality needs to be added.
Register a URL Handler, then have a link on your site to myapphandle://some.parameters.here/
A la: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html