I would like to track screen views for my mobile app in Google Analytics without using the iOS or Android SDKs. My App is HTML5 wrapped in Cocoon.io. Having access to AJAX already, I make HTTP calls directly. I do see the pixel GET is getting called with all the proper fields and a 200 as response. But there is no data in GA.
Has anyone tried this? Is it even possible? Any ideas on how to properly debug this?
Related
I'm currently using Laravel with VueJS for a web app. Using Sanctum for the API works great.
However, I also created a small Android app. This android app requires the token creation in order to authenticate. To make it work, I have to remove the following line from the Kernel API section, as otherwise I'm getting a 419:
EnsureFrontendRequestsAreStateful::class
Now, that's the problem: If I remove it, it will work on with the Android app but it won't work in the web app, and viceversa.
I guess I can remove it and create tokens for the web version too? Although I'm using Laravel standard login.
What do you think would be the best approach here?
I have a project, angularjs webapp (backend java and spring boot) and uses google map too, there is an android app that sends alerts to this webapp and those show location on the webapp’s map. However when I implement spring security it would secure the webapp and REST api, but will prevent the alerts from android showing on the map (can not find resource)….
I want an easy simple way to secure the app without stopping the REST API services, yes I want to secure my API but still want to be able to show the alerts sent from android device, also still accepts new registration from android users....(android users cant access webapp they only register to use android app and will be added to database..they will need to be able to post their info...)
I tried oauth2 using google sing in, but I must be missing something as it wont load,..If you think this is the right approach please confirm...I will further look into it...Or direct me to tutorial or give me any suggestions...
P.S I am using bluemix platform as a service at the moment and CLearDB database service from bluemix
I am a student and all this is new to me...Thanks
We have a Phonegap app (Android and iOS) and web app with web API that need to use Google plus authorization. We can't figure out how to implement that. So far we only accomplished to obtain access token from mobile app and send it to server, but that's not how it's supposed to be done for several reasons.
What we are trying to accomplish is to obtain authorization code from mobile app, send it to web component and get access token and refresh token there, which is the right way, and that's how it's done using native iOS and Android SDK, but for some reason it either can't be done using Phonegap, or we just can't figure it out. For web app it woks normally. If someone has experience with this that would be very useful.
The important thing is that user can log in from different devices and that API can recognise him and use refresh token to authorize.
It would also be nice if we could use the same app id for all clients.
I have an app on multiple platforms and i want to add a check to make sure the call is happening from the app. How can i verify this?
The app is a video game which is trying to post high scores back to the server which receives https calls.
The calls should be as secure as possible since i dont want people to post insane scores by decompiling any of the apk.
Update...
I found something for android : http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html
I am still looking for IOS and Kindle.
I'm working a mobile application for Android and iOS (native in both cases) that will be using Database.com behind the scenes as the database. I need this intergration to be tansparent to the user. The users of the app will not be logging into or authenticating with Database.com at all, it should simply be working behind the scenes a cloud database. I will simply be using an integration user hardcoded into the application.
I've been having an extremely difficult time of finding any of examples of how to build an app with the MobileSDK where I don't have to take advantage of the user-agent OAuth flow that displays a view to the app user. zkSforce has been mentioned as a possible solution for iOS (and it looks like it could be) but I haven't found even any basic tutorials on how to implement this with inconjunction with the mobile sdk to get access to the REST API (by bypassing the login view for the user). I also have yet to find anything at all for Android other than just taking advantage of the standard Java SDK or importing the web service wsdl and working from there through SOAP.
So is there anyone out there who can point me in the direct of some examples of behind the scenes authentication and use of the Mobile SDK REST methods or is my best option here to go to using the SOAP solutions behind the scenes?
Take a look at the OAuth 2.0 Username-Password Flow, which will allow you to use already known username and password with an OAuth-style flow. This is preferred to making a SOAP call in an app that is using the REST API everywhere else.