I am integrating Google analytics in an iOS App. I have a made a separate sample project and its working fine.
But when I am implementing the same in my App its not working.
Are there any frameworks that will restrict the App for not running Google Analytics?
First there are NO FRAMEWORKS that will restrict the app from running Google Analytics. But if you dont add certain frameworks you wont be able to compile the code.
Take a look at these links as these might be helpfull
https://developers.google.com/analytics/devguides/collection/ios/
https://developers.google.com/analytics/devguides/collection/ios/resources
mainly this one which is below
https://developers.google.com/analytics/devguides/collection/ios/v2/
Apart from this if you are working on Google Analytics for the first time. Let me tell you that you will only find your data on the Google Analytics Dashboard after some time. It may also take a day if its the first time.So be patient if have been able to compile the code and run the app. After the first time its quick. i.e. the data shows up much faster.
Finally, I have been able to do Google Analytics (GA) working as expected.
The problem was not due to any framework incompatibility, neither project build settings, nor plist option. I recreated the same configuration into another project to be sure.
From my point of view, the first problem I had was to try using the GA SDK v3 within an Xcode v4.6.3 while Xcode v5 is expected.
Then Downgrading the GA SDK version to 2 beta4 has not directly solved the problem because perhaps GA SDK's persistent data was kept in my app (by user default or core data).
#BhargaviShamukh, if you still have this issue, the way to solve it should be to clean the project (menu Product > Clean) and to uninstall the app from both simulator and device to be sure any GA SDK's data is deleted.
At least for me, this process has solved the problem.
Related
I’m using GoogleMaps pod in my iOS application and it was working fine, but in my last build, apple reject my application. And the reason behind that is, the map was unable to load at the time of review on iPad running iOS 12.2 on Wi-Fi.
I did try to reproduce that bug on my device but I couldn’t.
Application do ask for location permission
Google Place API key also seems ok.
Is there any way to identify what the actual issue is and how I am supposed to solve this one?
Finally, I've solved that issue and for that, I've done some of the changes in my project.
1 - I've patched the latest Google Plist file in the project (I wasn't sure whether the old one was latest or not)
2 - I was using multi language in my project so before setting the delegate of google map, I've set the language for my project.
3 - instead of set the google map from Storyboard, I've set the google map programmatically in my view controller after setting language.
After surfing for so long to solve this issue, I came to know that this issue occurs when your App supports multi language. These some steps did work for me.
I am using #ionic/storage as it looked quite promising after reading about it in the V2 Docs.
I use Chrome on my Windows 10 laptop so things appeared to be working perfectly fine at first. However, when I tested it on iPad, or even Firefox on my laptop, I was surprised to find out it did not work.
I was able to resolve the issue on Firefox by removing the sqlite plugin (I thought I will add it when I am ready for native testing):
cordova plugin remove cordova-sqlite-storage --save
Sadly, storage still doesn't work on the iPad. I tested it on Safari and Chrome. I am unable to debug this given the lack of developer tools or console.
I am quite frustrated how Apple makes you dependent on using a Mac to develop on their devices.
How do I go about fixing and debugging this?
I first import storage in Ionic 2:
import { Storage } from '#ionic/storage';
Then to save the data, I do this:
this.storage.set(pk, JSON.stringify(reportObj));
Where pk is just a unique key, and reportObj is an object that I stringify before storing. Again, keep in mind this just doesn't work in iOS.
Thanks.
Update:
So I managed to run the app in Safari and found out that .set actually works and the data gets stored in WebSQL. However, the get does not seem to work and I wasn't able to get any useful errors in the console.
OK, so after a lot of trial and error, I found out that the problem is not really with Storage. There appears to be some other issue with my UI, where it doesn't seem to work on iOS.
I decided to answer the part about testing the app on iOS while in development if you are not a Mac user. The best way for this appears to be to use Ionic View. You can use this simply by typing:
ionic upload
Make sure you create your account. In your iPad or iPhone, you can then download Ionic View app from iTune, sign in, and the app will appear there.
As you upload your code, simply upload again and almost instantly the app would upload on the device as you click Sync.
Hope other Windows users benefit from this.
I want add Google play Saved Games API to my game, to sync game data to different devices, but when I run sdk sample(“SavedGames” and "CollectAllTheStars2",I found the data just can be sync at local device,when uninstall the app or install app to another device and use same account to login,the game data can not be sync, the sample's data select page just show message:
"there are no saved games at this time"
I don't know what's going on.
ps: I'm using eclipse,so the sdk library what I using is get from the path:
android-sdk-windows\extras\google\m2repository\com\google\android\gms"
I Extract the jar files manually from .aar file(eg. play-services-base-9.4.0.aar)
so finally I use these jar files:
play-services-base9.4.0.jar
play-services-basement-9.4.0.jar
play-services-drive9.4.0.jar
play-services-games9.4.0.jar
play-services-plus-9.4.0.jar
I don't know where is the problem,why the data cannot be sync when I use the same google account to login at different device
someone please help me?
Be aware that Eclipse is no longer officially supported for Android Development. Using Eclipse may be preventing you to quickly creating apps and finding the necessary resources to build a project. So I recommend you to not use Eclipse in doing Android project. So maybe it is one of the reason that you encountered this problem.
Also, make sure you read this documentation about Adding Saved Games to Your Android Game, it explains here all the things you need to do in order to work your Saved Games in your project. It includes sample code that you can copy or follow.
NOTE: Make sure you enable the Saved Games service in the Google Play
Developer
Console.
i'm an iOS developer, but newbie to the kumulos, after creating app in the kumulos website i'm stuck in how to it implement Xcode. and the documentation inside the kumulos website isn't rich and helpful for that matter, any advice will be appreciated.
Thank you for you all.
Mark from Kumulos here. Assuming you have enabled the App Build feature, created tables to store your data, created API methods to access your data and then deployed your API methods to the Kumulos API servers. Download your SDK from your Kumulos console and follow these instructions to integrate the SDK into your Xcode project.
Unzip the bindings.zip file
Navigate to the IOS_OSX folder
Open your Xcode project
Drag and drop the Kumulos.h, Kumulos.m, and libKumulos.h files into your Xcode project.
If building for iOS, also add libKumulos_iOS_vx.x.x.a to the project. If building for OSX, add libKumulos_OSX_vx.x.x.a to the project instead
We've updated our docs site to make this process clearer. For any other queries, please do not hesitate to contact technical support from within your console.
Mark.
i'm trying to configure fabric in my iOS application
I have idea that we need to enter api key in application and have to download fabric' framework. The problem is i don't know how to get APi key.
I've created account on fabric, but don't know how to proceed. Unable to see Dashboard over there. Kindly help me how to do it. I'm stuck on this screen (screen shot below).
I've added xcode sdk and can see fabric app in my mac. But what about 3rd step. i think it's the main step and may be i will be able to get api key from here. but how to navigate to that.
Thanks,
I don't know what was the issue with project. i cloned it from another one and deleted fabric Api key from info.plist. Something was causing issue.
How i fixed it:
i created a new project. Made account on fabric. Installed its xcode plugin. The plugin gave me the option to choose project, i selected mine. Afterwards, it guided me step by step i.e adding run script etc and added fabric api keys in my info.plist on its own. Now it's working fine.
i was worried that why dashboard is not displayed on fabric.io, it was no issue at all. Once i configured fabric in my project, the dashboard appeared on fabric.io as well
The easiest way to add fabric to your app is via the desktop app, Click on "New app" and follow the instructions