I am working on a hybrid mobile app using ionic. I have developed all feature of app but One of the features I need is offline google map. I want to get lattitude and longitude of user when there was no internet and after reaching in interent zone it threw data using web API.
Is there a way how to do it? I want it for Android and Ios both.
If your issue is only getting the user location, that can be done with no need for internet. Instead, you can use GPS to get the location, and that can be specified by some options when you are getting the location, depending on what library you are using.
Related
I have an idea of building a travel/security mobile app connected with website, and besides other functionalities i should be able to find my phone on a map... similar to apple's iCloud web. Is that possible in Reactjs?
Yes. that is possible. There are many packages which gives the exact location of user.ex:- react-geolocated. Every time when the users location is updated make an api call to save in the db. and show the similar changes in other side (who is tracking the location).
I am developing ionic application for Android. I want to open the Google Map App from my Application. Using launchnavigator,
launchnavigator.navigate([50.279306, -5.163158], {
start: "50.342847, -4.749904"
};
I can able to achieve this. Can anyone clarify my following doubts,
Is it possible to get the Arrival/Destination time from google Map App????
And also Is it possible to redirect to my App again???
Anyone Help will be Appreciated!!!
Is it possible to get the Arrival/Destination time from google Map App.
Launch navigator will launch a Google Map where you can see the starting point and destination point with direction connecting between those. So you can get the Arrival and Destination time from there if You Start the Navigate in the Google Maps.
FYI: if you select start point as null it will then take your current
location.
BUT: if you want the data of of arrival time into your App its not
possible due to Policy restriction.
And also Is it possible to redirect to my App again???
I don't know Exactly but if you click the back button it will redirect you again to your Application. Cause the Google Api started from your App in the first Place.
I am a webdeveloper. Have experiences in web development languages i.e PHP, HTML, CSS, jQuery. Ive been googling for sometime and still not clear for me if I should use phonegap.
I have a project which will be deployed in Web, iOS & Android.
The project is more on displaying data like belows :
User Profile (save profile / view proifle)
User Activities (displays all activities of users. get the new/latest activities everytime for display)
User Feeds (displays all feeds. get the new/latest feeds everytime for display)
User Subscription (displays all subscribers and subscribed by user)
Login/Logout/Register/Facebook Connect
Basically, it is more on displaying data.
So i assume the API calls will handle all the data saving and retrieval.
I will be making an API using PHP for retrieving and saving of data and i got no issue regarding this.
Also i should use a websocket/node.js kind of plugin for the realtime activities/feeds data.
All i want to know is if Phonegap fits for my needs.
We all know phonegap has many disadvantages and i want to ask the advice of experienced experts out there if Phonegap is good to go for this kind of project.
Any advice would be greatly appreciated.
Even though I don't have experience with phonegap, I'm kind of in the same boat as you. I recently started using titanium studio with the alloy mvc framework, definitely worth checking it out.
So far I have build myself a todo app working on both android and iOS, using a remote mysql database server to store my data on. They offer cloud services also, havent looked into that yet.
You can also buy modules in their store, often not that expensive and it will save you a lot of coding time.
Head over here for more information:
http://www.appcelerator.com/
Currently I am developing an app in corona sdk. It is still very early in the development stage so I can change the IDE or SDK if needed to achieve my goal.
I wish to create an app that can be played on multiple platforms(mainly ios and android) and I eventually want the users to be able to use the browser to continue playing at home with their progress saved. It is a simple app and could probably be recreated in html. They will have to login their accounts in order to play
How do i go about to achieve this? Should I complete my app in corona first, and then recreate the app in html and php and link the database to it separately or is there a specific development kit I could use that has this ability. Also, I am new to the development scene, how do I detect if the user is logged in a particular platform as I realize if they are logged in, in multiple places and give multiple entries it may cause problems.
If you are new to the development scene then you should continue developing with Corona.
Corona doesn't povide any web port but I know Unity does.
I think first you should complete your game for mobile platforms and if it will have success you can port it to web.
You can read this:
http://www.graphic-buffet.com/2012/06/indie-game-development-where-start/
You might want to try phonegap (http://phonegap.com/). I have never used it, I just know that it exists, so do some research to see if it would be a good fit. This might allow you to create the app once for both browsers and mobile.
I am developing a mobile app for Android and iOS using jQuery Mobile.
The app will be deployed to Android and iOS devices utilizing Phonegap.
My problem is that I need a local offline data storage mostly for read operations.
I am planning to pull a data set from a web server (MySQL/web service) about once a month (whenever there is new data) and store it for local use on the device.
Now the question, what persistence solution should I use?
There is a tool called lawnchair by a member of the Phonegap team. Anyone tried it? What are the pros and cons? http://westcoastlogic.com/lawnchair/
What about sqlite? Is it working across Android and iOS devices?
THX
You could simply use HTML5 Storage / SQL Lite for this. Take a look at: http://diveintohtml5.ep.io/storage.html
I`ve been using Localstorage on iOs and Android without any problems, and since localstorage is backed up by sqllite i think you should be fine. (but i canĀ“t say anything for sure for sqllite on android)
HTML5 storage works fine on Android. A nice tool to make reading and writing to the database easier is persistenceJS.
I've just started on setting up the iPhone version of my jQueryMobile / Phonegap app. It stalls right at the point where the first call to localdb is made. This may be a problem of the iOS simulator, since the regular Safari runs my app just fine from the browser.
The HTML5 LocalStorage option will works fine until iOS 5.0. But there might be some problems from iOS 5.1 and later.
So my suggestion is to write some javascript code to back up to the document folder via fileAPI, and reconstruct the WebSQL database periodically.