Added our activity attributes type to the plist and I no longer get the Open on iPhone
option. But it doesn't open our app on watchOS either.
<key>WKSupportsLiveActivityLaunchAttributeTypes</key>
<array>
<string>MyAttributes</string>
</array>
Here's the errors I see in the Console:
error 14:41:36.648880+0200 ClockFace Failed to retreive application record for bundle ID <private>: Error Domain=NSOSStatusErrorDomain Code=-10814 UserInfo={_LSLine=1767, _LSFunction=<private>}
error 14:41:36.654383+0200 ClockFace [FBSSystemService][0x691f] Error handling open request for se.jagcesar.mat: <NSError: 0x14e23f40; domain: FBSOpenApplicationServiceErrorDomain; code: 4 ("InvalidRequest")> {
FBSOpenApplicationRequestID = 0x691f;
NSLocalizedDescription = The request to open "se.jagcesar.mat" failed.;
NSUnderlyingError = <NSError: 0x14e4e8b0; domain: FBSOpenApplicationErrorDomain; code: 4 ("NotFound"); "Application info provider (FBSApplicationLibrary) returned nil for "se.jagcesar.mat"">;
}
error 14:41:36.654812+0200 ClockFace Error opening application: Error Domain=FBSOpenApplicationServiceErrorDomain Code=4 UserInfo={BSErrorCodeDescription=<private>, NSLocalizedDescription=<private>, NSUnderlyingError=0x14e4e8b0 {Error Domain=FBSOpenApplicationErrorDomain Code=4 UserInfo={BSErrorCodeDescription=<private>, NSLocalizedFailureReason=<private>}}, FBSOpenApplicationRequestID=<private>}
It looks as if it's trying to open an app with the bundle identifier se.jagcesar.mat
, but the watchOS bundle identifier is se.jagcesar.mat.watchkitapp
.
Afaik the watchOS bundle identifier has to use the iOS bundle identifier as a prefix followed by .watchkitapp
.