what is the iOS equivalent of mixpanel.get_property() in javascript - ios

I am trying to increment a super property in mixpanel iOS (OBJC). I am following this blog to do so:
https://blog.mixpanel.com/2015/01/29/incremental-super-properties/
As you can see, it does what I want in javascript using get_property method of mixpanel. But I need to do the same thing on iOS. I can't seem to figure out what is the equivalent of mixpanel.get_property() on iOS.

https://mixpanel.github.io/mixpanel-iphone/Classes/Mixpanel/index.html#//apple_ref/occ/instm/Mixpanel/currentSuperProperties
The above link is equivalent to
https://mixpanel.com/help/reference/javascript-full-api-reference#mixpanel.get_property
Both functions return super properties
Hope this helps,
Cheers Analytics ML.

Related

Google DFP errors using DFP supplied tags

I've added tags provided by DFP today and yet I'm getting the following error on all the tags.
getName on googletag.Slot is deprecated and will be removed. Use getAdUnitPath instead.
I've searched all over for what this means, but can't find an answer anywhere.
Any suggestions?
Figured this out...it was caused by the Google Publisher Toolbar extension for chrome. The version I have has been deprecated.
i tried to use this one, and it is working.
googletag.pubads().getSlots()[0].getAdUnitPath()
May be use forloop of you want to iterate on ad-Slots.
i tried to see if getAdUnitPath is a method available in pubads, but could not find anything...
the only article on google i saw about this was:
https://developers.google.com/publisher-tag/reference#googletag.Slot_getAdUnitPath

How to build app Twitter using Retrofit?

I need to help. I'm doing a project about Twitter, but I don't know how to build it by using Retrofit. I really need some documents or an available one to make a reference.
Thank you!!!
This is an example in a complete tutorial for retrofit, I suggest you read the whole tutorial before you start working on the Twitter example, good luck:
http://www.vogella.com/tutorials/Retrofit/article.html#exercise-using-retrofit-with-oauth-to-request-user-details-from-twitter-in-android

Quicblox migration issue, No QBVideoChat class available

I am getting this response in the log.
There is no delegates which responds to didReceiveNewSession:userInfo:
I wonder If this points to specific delegate as I am not able to find any relative solution for this.
Also Previously there was a class QBVideoChat which is not mentioned on Quickblox blog or updation guide.
I wonder if that has any thing to do with this issue.
Thanks in advance
QuickBlox has deprecated old QBVideoChat with WebRTC QuickBloxWebRTC
http://quickblox.com/developers/Sample-webrtc-ios
Here is the open source sample-video-chat project available on github
https://github.com/QuickBlox/quickblox-ios-sdk/tree/master/sample-videochat-webrtc
Error There is no delegates which responds to didReceiveNewSession:userInfo: means that you did not add any class to QBRTCClient delegates list

Dropbox Core API for Swift:Cannot initialize DBSession?

I was following the link below in order to use the Dropbox Core API in my iOS application: https://www.dropbox.com/developers/core/start/ios
However, this is all written in Objective C. I have gotten it so that I have imported the DropboxSDK into my project but I can't seem to find the Swift equivalent code of beginning the authorization process. I have tried looking at all of the given functions in DBSession and DBSessionDelegate that look similar to those in the example tutorial above but I haven't had any luck. Any ideas how to do this? The following is the code in Objective C that I am trying to translate into Swift.
DBSession *dbSession = [[DBSession alloc]
initWithAppKey:#"INSERT_APP_KEY"
appSecret:#"INSERT_APP_SECRET"
root:INSERT_ACCESS_TYPE]; // either kDBRootAppFolder or kDBRootDropbox
[DBSession setSharedSession:dbSession];
Specifically, I can't seem to find any function to allow me to initialize my application key app secret, or root. If anyone could help me out, that'd be great! Thanks.
let session = DBSession(appKey:"...", appSecret:"...", root:...); works in my testing.
You may want to read https://www.dropbox.com/developers/blog/109/swift-apps-with-dropbox for the basics of using Dropbox SDKs in Swift. (That blog post doesn't deal specifically with the Core SDK, but the steps there still apply.)

UIWebView Expose Objective C to JavaScript

How would I expose an Objective-C method within JavaScript when using the iPhone SDK when using the UIWebView?
Any help would be appreciated!
The best way to do this would be through a custom link, and then use the UIWebView delegate method -webView:shouldStartLoadWithRequest:navigationType: to trap requests. When you see a request come through with your link in it, you know your action has been triggered.
There is an example application in the QuickConnectiPhone framework that shows you how to do this.
QuickConnectiPhone also gives you a JavaScript function called 'makeCall'. You pass it a command and an array of parameters and it will pass them to the Objective-C side of your app for handling. You can then make your function call.
You can find it here on Sourceforge.
To see an example of this check out the PhoneGap source code from Github:
http://github.com/sintaxi/phonegap/tree/master/iphone/Classes/GlassAppDelegate.m

Resources