Xamarin Monotouch Google Conversion Tracking to Track actual App Downloads - ios

Our SEO team has requested that I add Google Conversion tracking into our apps.
They sent me the below text. Anyone with an idea of how to implement this via Monotouch ? I don't really follow what the snippet does, so not sure how to re-write it ? And the Google SDK is in Obj C ?
Any ideas ?
Below are the instructions on how to implement Conversion Tracking to Track actual App Downloads. The App Developer has to implement this.
Step 1: Download and import this SDK into your Xcode project http://dl.google.com/googleadmobadssdk/googleconversiontrackingsdkios.zip
Step 2: Make a call from the app that you'd like to track. Add the following code to your application:didFinishLaunchingWithOptions: method.
Learn more:
http://adwords.google.com/support/aw/bin/answer.py?answer=115794&hl=en_US.
// Google iOS Download tracking snippet
// To track downloads of your app, add this snippet to your
// application delegate's application:didFinishLaunchingWithOptions: method.

For some reason my initial Google searches came up with nothing, but some more research yielded the following code, which looks promising.
https://bitbucket.org/kirk/google-conversion-tracking-monotouch/commits/6f18a0a9555f93b868fa8f516df9c694

Related

OpenTok SDK - Null reference error - Xamarin iOS

I have built a simple Xamarin iOS app to subscribe (no publishing) to a single stream and display it in my primary view. The app will connect to a screen capturing stream from a desktop application that will be publishing the stream.
My Setup
Windows VS paired to a remote Mac, running a simulator on my local windows environment.
Using Xamarin.OpenTok.iOS (SDK v2.17.1) Nuget package in project.
My project is not a Xamarin Forms cross-platform application, but solely an iOS application.
OpenTok session and tokens generated in project management portal. I have attempted both "Relay" and "Routed" with the same results. I have been creating tokens with a 7 day expiration.
In developing the implementation of the OpenTok SDK into my app, I have followed the project found here
The Issue
I am creating a new session passing in my newly generated API Key and Session Id and then Connecting with my subscriber token.
_session = new OTSession(_apiKey, _sessionId, null);
...
_session.ConnectWithToken(_userToken, out error);
I am also subscribing to relevant Session events (ConnectionDestroyed, DidConnect, StreamCreated, StreamDestroyed, DidFailWithError).
After starting this connection I am given the following output and none of the events I am subscribed to are invoked.
Output Log - StackOverflow would not let me paste the log here
I am also seeing an attempted connection to the Session in the OpenTok Inspector.
Session Log
I am aware of this ticket and have confirmed it is not an expired token. I am pretty confident that this null reference is coming from the OpenTok SDK source code and not my code but cannot tell what it is. The error will completely freeze my app as the looping does not stop. Any help and guidance would be appreciated. So the questions are:
What is causing this error and how can I fix it? Am I missing an initialization step?
Is the iOS Simulator the real issue?
Thanks
a simple Xamarin iOS app to subscribe (no publishing) to a single
stream and display it in my primary view. The app will connect to a
screen capturing stream from a desktop application that will be
publishing the stream
This is possible to implement with Xamarin Vonage Video API SDK. I will try to explain that as detailed as possible, feel free to skip ahead.
You started correctly with the Xamarin samples.
In fact, there are only 2 changes you need to do to achieve your goal with Xamarin.iOS app (not Xamarin.Forms, will get to that later):
Update ApiKey, SessionId and Token in OpentokTestConstants.cs (here) file
Comment out Publish() in the OpentokStreamingService so that the app only subscribes to video streams in the session and does not publish camera stream
Here is a screenshot running the sample app with these changes in iOS simulator and viewing a stream published from the web (I used the "The OpenTok Playground" tool for that)
Now, regarding Xamarin.Forms.
There is no sample for Xamarin.Forms, unfortunately. If you can share a sample app (without ApiKey/SessionId please) I'd be glad to look at it.
Generally, a logic for video calls on Xamarin.Forms is:
have DependencyInjection wiring to expose key methods from OpentokStreamingService that is implemented in iOS/Android samples (docs on how you do that in Xamarin.Forms)
implement a custom Xamarin.Forms view + renderers for it. The view does not need to do anything. The renderer should be doing at least one thing - passing down a reference to a native view to the OpentokStreamingService using a code like this:
_opentokService.SetStreamContainer(NativeView, false);
where NativeView is a native (Xamarin.iOS/Xamarin.Android) view (not Xamarin.Forms view). You can get that reference in the renderer's ElementChanged method.
This doc from Xamarin covers that well.
After the selected line, Control will have a native view reference that you just need to pass to OpentokStreamingService.
That will get you a scenario working in Xamarin.Forms. I hope that this answer helps!
P.S.: Logging with Vonage Video API Xamarin SDK on iOS
There is a better way to get logs for diagnostics purposes with iOS SDK.
A call like that before any OpenTok SDK calls would give you a very detailed log of what's going on:
OpenTok.OpenTokExtraLogging.EnableOpenTokLoggingToConsole();
It will look like this:

How can I share a url from a browser to my app in iOS?

TL/DR
How can I make an iOS app appear on share sheet to receive shared urls from any other app?
This is a super newbie post as I have never really touched swift to develop anything, but I couldnt find the answer to my question on google so i wanted to start here. Almost everything I found by googling around is UIActivityViewController which appears more to be about how to share content from my app to another app; while what I am trying to do is share urls from another app to my app.
I am try to build a simple app for ios (doesnt have to be old version compatible because it will be only used by me) that can be a receiver for shared urls from apps like safari, brave or youtube. All the app does is when user clicks on the share button, and then chooses the app, the app gets the relevant data that is being passed, and then posts it to a backend server.
I can accomplish this on my android app/devices with an intent filter action android.intent.action.SEND in the manifest, and then listening for it with Intent intent = getIntent() in my method.
Would someone be kind enough to point me in the right direction at what I should look into (google about). If you can also point me to some sample code examples on how to write an app that can be the receiver for shared data (like urls), that would be fantastic. I am not sure what to search for so that my app can show up on share sheet, and how to then react with the data.
Again, apologies for the super noob question, but I couldnt translate my idea to something relevant on google.
It can be achieved by an Action Extension. Search for it.
Here is one:
https://code.tutsplus.com/tutorials/ios-8-how-to-build-a-simple-action-extension--cms-22794
I think both Share extension and Action extension can do the job. It depends on your needs.
Check this table to make sure which one is more appropriate for your purpose.
You can refer to App Extension Programming Guide by Apple.

Connecting to Apple Music

So Im trying to connect to Apple Music from an iOS device using a react native application, There is an API present for doing the same but I need to call a function from the storekit framework ? to make personalised requests.
Apple Music API : https://developer.apple.com/documentation/applemusicapi
Function to be called : https://developer.apple.com/documentation/storekit/skcloudservicecontroller/2909079-requestusertoken
Im not sure how to go about this, I'm a beginner at React Native, could you guys help me out
UPDATE:
So I figured I need to make use of something known as React Native Modules ?
More here : https://facebook.github.io/react-native/docs/native-modules-ios#content
still trying things out, please feel free to add or correct me, this is still a work in progress
Okay so i finally figured this out,
I had to create functions on Objective-C and pass them over to React native using the RNBridge, explained more in 'Native Modules'
So i had to create functions for checking authorization and requesting authorization, and a function to get the User Personalized Music Token,
The developer token used was encrypted on my back-end that is running on python

Google map api + node.js realtime backend + ios

I'm new google map, so im not really sure how to start. I have few questions that Im currently confused right. I'm trying to build an application similar like uber
1) Google maps comes with and SDK, and how exactly am i going to make it in real-time, for example there are two guys with GPS, how does Guy A can see Guy B moving in reatime, do i need to use node.js + socket.io to make it work? or the SDK itself already handled that.
To start with, Google Maps SDK for IOS automatically handles access to the Google Maps servers, map display, and response to user gestures such as clicks and drags.
Please note of the following when using the Google Maps SDK for iOS in your application:
You need to comply with the Terms of Service and ensure that your app complies with applicable laws. Note that when using the SDK, your application name and version, authentication information and a cross-application anonymous identifier is automatically sent with each request.
You must include the attribution text as part of a legal notices section in your application which can be obtained by making a call to [GMSServices openSourceLicenseInfo].
Developing an application with the SDK requires the following: (1) Xcode 6.3.0 or later. and (2) iOS SDK 8.0 or later.
And for the implementation part, this SO post - how to track real time position using google map API? gives out the steps needed which could help.

Is it necessary to call FB.Init()?

We're trying to integrate the Facebook SDK just so we can track installs and the effect of Facebook ads on our mobile game on iOS.
From what I've been reading it sounds like the purpose of calling FB.Init() is to give back a page to display to the user to log them into Facebook. That's not really what we're interested in so we just ignore it. Our game doesn't need or want to log anyone into Facebook -- merely to track the install of the app by App Id. Do we even need to call this?
Is it enough merely to include the SDK and set up the settings file in our app for iOS builds?
Yes, you have to call it.
This method is used to initialize and setup the SDK. All other SDK methods must be called after FB.Init(), because they
won't exist until you do.

Resources