Statistics on Facebook shares - ios

I want to add a share button inside an iOS app and wonder if it is possible to get any statistics of how many people have used the shared button inside my app? When people use the share function they will share an image from their phone and not any URL. I wonder if facebook already have any built in function for this or if I need to track the clicks programmatically.
Thanks in advance!
Vatan

Google will allow you to do tracked links for Android, so there must be an equivalent for IOS. https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-url-builder
There is a way to add trackable links and analytics using SWIFT, according to Google. https://developers.google.com/analytics/devguides/collection/ios/v3/

Look into App Events. You can define your own events for actions users take in your app, and then you can evaluate them in Facebook Analytics for Apps.
https://developers.facebook.com/docs/app-events
https://developers.facebook.com/docs/analytics

Related

How to customise the invite dialog sheet in Firebase Invites for iOS

I have integrated the Firebase Invites in my App, which provides only two options SMS & Email.
Now I want to share the dynamic link via whatsapp and other social networking channel like facebook and Twitter.
I didn't find any solution on developer site.
I have seen some solution for customization of share sheet but for android.
Thanks in Advance
I have done the enough R&D on the this and finally reached to a point that this is not possible.
Firebase only provides only two options i.e mail and text message
Apart from that no other options are available .
I don't understand why they have mentioned in Fire-doc that we can customise the ShareSheet , but we can't do anything like that.
I suggest everyone not to waste the time on searching for solution.

How to work with Firebase App Indexing for IOS Apps

i am in the process of making my app with firebase i am pretty much done with that except Firebase App Indexing. I am very exited with this feature because it could help me to increase my app get more traffic from the web but the problem is i really can't able to see how to implement this. According to Firebase Docs i just need to register my app with this pice of code
[[FIRAppIndexing sharedInstance] registerApp:your Apple ID from iTunes Connect];
I have done that but what should i do after that?
1.My app is firebase app that means i don't have any website to host my content except firebase realtime database. Does my content is available for crawlers? if not how can i make available to them?
2.If i can able to show my content in the google search results i don't wanna show all the content and i wanna show just some of my content for example i have a social app for sharing General Knowledge questions, i wanna show just the question like "What is the highest mountain" in the search results and if the user want to see the answer it should take them to my app how can i do that?
3.As per docs i came to know that i need to create univiersal links for my app content to direct users from google search but how shold i do that ? Lets say should i crate universal links when the user create question?? if so how can i do that ??
Thank you very much for the help.
This is not currently possible on iOS using Firebase App Indexing. The situation is slightly different on Android, but that is not applicable to your question.
On iOS, Firebase App Indexing is simply highlighting pages on your website in Google search results that have corresponding content inside your app. This is achieved by piggybacking on Apple's Universal Links standard, and there is no proactive 'crawling' going on inside your app. This means unless you have a corresponding web page for your app with 1:1 content parity, you can't really benefit from Firebase App Indexing on iOS as it comes out-of-the-box.
The best workaround is to generate little 'placeholder pages' for every piece of content in your app, which the sole purpose of opening your app (if it is installed) or redirecting to the App Store (if it is not installed). Ideally you'll need some sort of deferred deep linking system so that users still see the correct content after downloading. Fun fact: this is essentially how HotelTonight operates their entire business model. Unfortunately Firebase's implementation is not mature enough to support this full flow, and Google hasn't quite figured out how to rank app-only content properly yet in search results so you will probably need to pro-actively submit your placeholder pages to them.
Shameless plug: at Branch, we provide all of the above as a free service. You can read more about it here and take a look at the set up docs here.

Redirect to my app after user reaches destination using Apple maps or Google maps

Hey Guys I was wondering if there is a way to redirect the user back to my iOS app after they've reached their destination on Apple maps or Google maps. Thanks!
This could be possible if the app you open, is yours as well, then you could add some code there that does that. However, if you are talking about google maps / Apple maps, then that is not the case.
As far as I know, there is no api for that... iOS 9 brought the "back to..." button exactly for these situations which gives the user an easier way of switching back to the opening app.
Question, why to open another app if maps is all you need? You can always implement a map in your app and save the switching...

Initiate Facebook Group Chat from iOS App

I want my app to create a new Facebook group chat with certain people that opens either on Facebook's site in Safari or in the native Facebook app when the user presses a button. I want Facebook to handle the whole chat and my app only to initiate it somehow in the cleanest and least involved way possible. My app already uses the Facebook SDK to open an active FBSession, so I've already got login credentials.
Looking around online and in Facebook's docs, I can't find anything that suits my needs. The closest thing I found was in this answer containing a list of Facebook app URLs you can connect to that open the Facebook app to certain pages. There's "fb://chat/(initWithUID:)" and "fb://messaging/compose/(initWithUID:)". However, not only is there no explanation on how to use these, but people say that Facebook has changed these URLs (and does not have any documentation on them), so they don't work anymore unless I reverse-engineer new URLs (which could change again). Ugh, so close!
I also found examples on starting chats with the Facebook Chat API, but that involves logging into Facebook using some networking framework then writing my own GUI and model for sending messages, which I am only prepared to do as a last resort. There should be some way to let the Facebook app or website do all that. Does anyone know how I can do this?
I've found something very close, but I still don't see a way to make my app initialize it with the desired group of friends:
The Facebook SDK has a message dialog that can appear for sending messages to friends. This isn't exactly what I wanted but is good enough because it means that all the programming is already done for me by Facebook, and users should be able to see these messages on https://facebook.com and the Facebook apps. https://developers.facebook.com/docs/ios/share#message-dialog

Is there a way to track my app's search ranking on Apple App Store?

I want to programmatically track my app's search ranking on Apple's app store. Is there any API or website to do this, outside of the 'App Store' app on my iPhone?
the following websites allow searching the iOS app store.
https://theappstore.org
http://fnd.io
I'm not sure how the exact ranking is reflected, but Apple now provides an JSON API call that you can make.
https://affiliate.itunes.apple.com/resources/documentation/itunes-store-web-service-search-api/
This includes the ability to add in a callback parameter so you can even incorporate it into a web app without having to parse the results on your server.
The end API call would looks something like this:
http://itunes.apple.com/search?term=props&entity=software&country=US&callback=lkasdfj
In case users are still looking for this. Apple finally made it possible to just use the apple.com website:
https://www.apple.com/ios/app-store/ Use the magnifying glass in the top right to search the apps.
Once you find the app you want, there is a unique URL that you could use to grab information for tracking or other purposes as well.
You can't do anything other than look at the app information at this time (no way to initiate a remote install to your phone or leave a review, that has to be done on the device)
You can use the google advance search option like
site:itunes.apple.com/us/ "requires iOS 9 or later"
and then scrape the response.
You can use data.ai formerly App Annie. The free version will give you daily and overall search ranking for your app, and will help you immensely in ASO (App store optimization)

Resources