It is showed up two same apps button in UIDocumentInteractionController popup - ios

I appologize for my low level English.
I developed Share Extension in my app to support the extention added at iOS8.
But, my app has been already showing up in UIDocumentInteractionController popup.
So, my app has been showing up two items for same app after supporting share extension:"xyz, copy to xyz".
'xyz' is my app name.
I want to make to show up only one item at UIDocumentInteractionController popup menu.
Is there any way to do it?

I have suffer this familiar situation when i research share extention.When i open safari to share web url to my APP, the safari's share menu has two same APP button.Then i click Product-->Clean solve this problem.This seems caches should be blame for it. I also apologize for my poor English.

Related

How do I share a link to Whatsapp on Xamarin.iOS?

I'm working on a cross-platform PLC project on Xamarin.Forms. Specifically on iOS and Android.
In one of the views I have 3 sharing buttons, one for Whatsapp, one for Snapchat and one for general sharing. The idea is that when the user taps on one of these he sends an invitation (a deep link) to his friends trough social media.
I've implemented some android-specific code to share a link trough Whatsapp or Snapchat when tapping those buttons, and to show the normal sharing screen to pick an app on the other share button. For this I just used Intent.SetPackage method to share on the specific apps.
On iOS however, even tho there's a code to open the general sharing screen, I couldn't find any code to send the link to Whatsapp or Snapchat specifically.
My question would be, is there a way to achieve this on iOS?
This could maybe be a solution for WhatsApp, https://faq.whatsapp.com/en/general/26000030
Snapchat: Snapchat url scheme not working properly - camera opens but not profile
On the end we didn't find what we where looking for, but we noticed apps usually just have a common share button on iOS, so we left only the normal sharing code in iOS.

iOS extension- sharing bubble vs sharing button?

I have read the apple docs about app extensions- sharing
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/ShareSheet.html
What they say is that when an host app has a sharing button , you can choose your app extension to share content .
But it seems that there is another sharing option that is not in the docs, and i cant figure out whats the different and how you enable this extension.
When you mark any text in ibooks ,or Safari , there is a little bubble opened with copy, past, select all, and share.
there if you hit the share button, you prompt with apps extensions, and you can share that highlighted text with the extension .
So, questions are :
the highlighted text sharing- is it enabled in every app that lets you to highlight any text ?
How you enable this extension, and is it the same as the regular sharing extension? (where you have a button with a rect and an arrow). Developing an app with sharing extension would be relevant to both cases ?
thanks.
Well , it seems that the sharing extension is working with the "bubble" sharing button , but with the regular sharing button(a rect and an arrow) you get as an input -a link to the page, much as Pocket do .
So software speaking its the same, functionality is different.

Is it possible to create "Add to Home Screen" like feature from another app?

Currently "Add to Home Screen" works only with Safari browser. 1. Is it possible to programmatically create "Add to Home Screen" short cut from a custom native iOS app ? 2. Is it possible to make the short cut to launch another app, not the safari app?
This is a bit broad a question, but I'll attempt an answer. Short answer: no. You cannot add a home screen icon that launches another app from within your app without going through Safari first. (You can, however, link to another app directly from yours. See below.)
More intricate answer: if you want to launch another application from your own, and the application supports URL schemas (i.e. instagram:// for launching Instagram), you will be able to. Please see this link for the official docs.
The part that may remain unanswered here is whether a UIWebView can create a home screen shortcut from inside another app. It seems you cannot do this, after a bit of googling. This answer explains.

How to open appstore link without closing app

I want to open an app store link within an app but without closing the app.
You can look for the best example which is Cut The Rope
It opens the link with a modal view controller and looks similar to the view when we press the app icon the app store
As I think it might be a UIWebView presented in moal controller. If guess anything interesting or if you have any answer please let know about this
You can use SKStoreProductViewController: SKStoreProductViewController StoreKit Reference
Example: Stackoverflow Answer with same problem

How do you open a app in Safari that has 2 words in the name?

My problem is that I want to be able to open a app through Safari but I'm not sure how to do that with a app that has two words in the app name.
For example I know that if I want to open a app in Safari (Lets say Youtube) that I would put
"Youtube://" in the address bar and it would take me to the Youtube app. But my problem is that I don't know how to open a app if it has two words in the name of the app. For example if I wanted to open Game Center I don't know how I would do that because putting in to the address bar "Game Center://" doesn't work.
Any help would be appreciated.

Resources