TextExpander / TextExpanderTouchSDK

TextExpander touch SDK
85 stars 13 forks source link

isTextExpanderTouchInstalled always returns false on iPad #18

Closed youens closed 6 years ago

youens commented 7 years ago

We're seeing an issue where calling [SMTEDelegateController isTextExpanderTouchInstalled] on iPad always returns false. We've had TE3 installed, as well as TE4. The effect in our app is pretty large in that it prevents any use of TE.

Perhaps it's an issue on our side, but it works fine on iPhone (same project, different target). Can anyone confirm that it does in fact work properly in all scenarios?

SmilinBrian commented 6 years ago

This method is very simple:

+ (BOOL)isTextExpanderTouchInstalled {
    return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tetouch://"]];
}

Probably you are missing these steps from the Readme instructions

Allow querying and opening the TextExpander touch app

As of iOS 9 you must "whitelist" TextExpander URL schemes so that openURL and canOpenURL can work properly.

Select your app's target


Let us know if that does not solve it.