Analytics to the frontend or backend - mobile

I'm creating a mobile app with phonegap (BB/iPhone Platforms) with a backend that serves the data as json and I want to add an analytic to it. Should add it to the front end app or to the backend? What's the best approach?

Related

Data sharing between ReactJs/Node app an Flutter mobile app

Please, I'm planning to design a Web App with ReactJs/Node then its mobile version with Flutter.
From your experiences, can you advise me a way of data sharing between these stacks?
Thanks.
The best way is to create REST or GraphQL API using nodeJS so that you can access it both from the React and Flutter app.
Creating a Secure REST API in Node.js
Creating A GraphQL Server With Node.js And Express

Best Practices For Django Web App + REST API Architecture as one project

I am working on my Django project which is going to be a Web App and REST Api for the mobile app.
I am using Django Rest Framework to build the API for the mobile app and it is going pretty good. I like it. For this part, I have a separate app within my Django project. Let's call it 'api'.
What I also want to do, is a web app. Let's call it 'webapp' in my Django project. So basically, web version of the mobile app, with a few different functionalities (e.g. different user/account management) for a slightly different part of the audience. Obviously, the majority of the models that I need, as well as logic are already there in the 'api' app. Also, I want to use Angularjs for the front end of the web app.
My question is what is the best path to take here? Should I create a separate app for my web app and copy the majority of views.py logic, which again will reference models and serializers from the 'api' app in the project? Or should I adjust my existing 'api' app to handle requests from both mobile phones and web app? Thank you.
You can follow link. I also follow that link when started angularjs, django and django-reset-framework.

moble app deploy in Ccomonsere

hi i develope a mobile app with phonegap frame work and html5,erything works fine but for future exist i need to connect my app to server db to make app multi-user. rit now i just create a local storage by using js which store all the user data in perticular local storage? what are the options i have to make the db server connected do web services work with this if so what kind of service i need to use. itried for few web services but all they are related to web applications. plzz help me thanku
Your phonegap App is like a Web App. The advantage that your phonegap app has over Web App, is that you can access native features (camera, Contact, etc..) of the phone with phonegap, which is not possible with a pure webapp. So all the backend services that you can use with web app can be used by your phonegap app.
Now which web servcies you want to uses depends upon your preference.
You can use web services or RESTful service for getting data from the backend.

Using trigger.io with GAE

I want to try using trigger.io.
We have a Web App and using GAE.
How can we test our Web App with trigger.io?
I see that on the "WEB" section of the toolkit there's only a spot for "Heroku".
Is it possible?
Do we need to migrate?
How can i test our web app with android? I couldn't find a place to direct it to our index.html.
Thanks a lot.
The web section in the Toolkit basically lets you deploy your mobile app as a mobile website, based on Node.js.
If you have an existing web app that you'd like to use as the backend for a mobile app, then it's a case of exposing some sort of HTTP API which your mobile app then interacts with.
Having the mobile app just receive JSON from GAE, build its HTML views and present them to the user works really well.

PhoneGap Backend Database - Google App Engine DataStore

I have developed a PhoneGap application (HTML5,CSS,JS). The app needs to create product items using a form and then store that information in the gae DataStore. The app also needs to display all the products stored in DataStore.
I am new to both Web Development & Google App Engine. Can you please point me to an example (sample) code that uses PhoneGap & Google App Engine DataStore.
If using java, you can implement your backend using a REST framework like Restlet, Jersey or Cloud Endpoint
If using python, you can implement you backend using a REST framework like Flask-Restful or Cloud Endpoint.
Alternatively you can consider using something like gwt-phonegap that provide direct integration of phonegap with GWT.
You can call it from Phonegap using your preferred javascript library or XMLHttpRequest.

Resources