How can i launch native mobile app inside PWA - android

I have developed a PWA for my website. With this PWAs I just want to use nfc reader for control but I doubt the success of software like WebAPI etc. That's why I want to read NFC on a native mobile app and show the answer on PWAs. Any ideas on how I can do it?
When I searched on the internet, I read some methods about service workers and intent classes, but I could not fully understand.

Related

Calling the OS Telecom Framework from a Web Browser

I need to develop a videocall application for telemonitoring, where a user in a Web Browser (on a Desktop PC running a Web App) calls a user in an Android App (on a Smartphone/Tablet).
Is it possible to use Android's Telecom Framework from a Web Browser? I was looking at this tutorial.
If it's not possible to do such a thing, I was thinking about using a VideoConference service like Vidyo along with FCM or GCM, to notify the Android App that it should connect to the Conference Room.
But that seems overly complex for this case of use, so a second question would be: Is there a simpler way to achieve a Web Browser to Android App Videocalling service?
No. That requires a native app, or requires the web browser to provide access to those APIs. TO my knowledge, none do. And if they did, it would not likely be the same API, as they'd want it to work across OSes.

How to get the GPS location from a native app and pass that info to web browser without browser warning?

I want to build an app like tinder. but this question is not related only to a dating app. Think any app that use GPS coordinates to locate where are you. Think a traffic app. So instead of creating native apps for android, IOS and windows phone I would like create a one web app by using ASP.net with fully responsive design. What I hope to do is load this web browser behind native apps on these different Operating systems. So yeah I am talking about a hybrid app.
So in tinder they are tracking their GPS location to discover persons who are within some certain Perimeter. So if I use
navigator.geolocation.getCurrentPosition
Browser will popup window for ask user's permission to share the location. Also this warning is expire from 24 hours and again this message will popup. this is not what I wanted. So can I write a piece of code for just to get the GPS location from the native app and pass that information to my browser without that warning dialog? Is this possible ?
What you are asking for is only possible when you are creating your app with a tool like Cordova, PhoneGap, ... (there using a plugin for Geolocation)
They offer you interfaces to communicate with native APIs, thus skipping the browser dialog.
When only using HTML5 and JS you can't skip that dialog, it's for the user's own protection.

Apache cordova or native development for an instant messaging app?

I have to develop a mobile app for iOS and Android .
I'm undecided whether to use a cross-platform approach with Apache Cordova or to develop in a native environment, with Eclipse ADT and Xcode .
The problem with the native development is that I have to build two distinct app, doing the same job for these two platform.
With Apache Cordova i should build a single HTML/CSS/Javascript app but i have serious doubts about the efficiency of this type of app development.
The app is an Instant Messaging system for medical doctors, with exchange of multimedia elements. It is important that the message exchange is protected via a cryptographic protocol like TLS .
Specifically, i have to implement:
A multi-platform registration and authentication system communicating
with a Web server through PHP language and MySQL DBMS;
The requests and response format is defined with an XML document;
Research of users by giving the opportunity to open a conversation with a
particular user;
Research of medical cases giving the opportunity to participate in the
discussion of one or more cases;
Creation of medical cases with description, media attachment and initial
selection of participants according to different medical specialties;
A user profile with the possibility to modify the entered information.
Push notification system (GCM for Android) . Clicking on the
notification will directly open the chat;
Protection of client-server communication via HTTPS protocol, which
includes functions of asymmetric encryption and data integrity
checking.
Through the chat it will be possible:
To show user profile by clicking his photo;
Report any abuse;
Send the conversation via email
Share the conversation on Facebook and Twitter.
I have read about the inefficiency of the hybrid app development, becouse it relies on the WebView native component which makes the app heavier and slower.
On the other hand, the native developement approach takes more time but assures best performance . (If the app is well written).
Based on the characteristics I've listed, what kind of approach do you recommend to follow?
Thanks :)
Of course if you have enough resources(time, money etc) creating native application is always better solution.
But if you need to save time of development and feature support of app, I recommend you to use hybrid approach, but without Cordova or Phonegap. You can just create some parts of UI and logic as independent HTML5 components on your server and then load it in webview on your apps.
Simple example: You have to implement form which will allow user to write a review about doctor.
Create HTML5 page of form on your server (with js and css). You can use jquery mobile for make it responsive.
Load this page on webview on your apps (both IOS and Android).
Logic which validates and submits form is also on server (php, js), so there is no need to create it inside app.
Such approach allows you to use HTML5 only for simple things, like forms, popups etc. You also always have flexibility to choose how do you want to use it and you are not restricted with any external framework.

How to create persistence between web and native app?

Is there any way to track UID across web to app on either IOS or Android. For example we have a mobile website which if accessed by a user will remember it. Then they are directed to download the app and when the app is opened, it would be great for the app to know that the user already opened a particular web page on our mobile web site. Without having a login, is it possible to accomplish this? This article seems to "hack" that process? Is there a cleaner way? http://www.hasoffers.com/blog/ios-cookie-tracking-wrong-mobile-app-tracking/

Redirect user from mobile website to dedicated mobile app

I'm wanting to give the user the option to view a more detailed version of a map on a contact page for a website. Is it possible on a mobile web site to redirect the user with a link to their dedicated map app on their smart phone?
Moreover is this possible for all / many apps on ones mobile phone to be directed to if they so wish, i.e gmail, dictionary, etc giving the user a better experience by merging mobile web and mobile applications? Would I need to use native languages such as java and objective-c to do this?
Is it possible on a mobile web site to redirect the user with a link
to their dedicated map app on their smart phone?
For this, your mobile website, have to open an application on your smartphone, as question is tagged for Android, your website have to throw dedicated Intent which your Android based smartphone can understand as well as Intent should be registered as broadcast receiver for it.
But as far as i know, websites can have html/x-html format, by which email/call application of android can be called. I am not sure how x-html pages will re-direct intent to android system.

Categories

Resources