Post

Replies

Boosts

Views

Activity

How to get URL of active tab from popup.js with Safari iOS App Extension in iOS 15?
I'm developing Safari App Extension for iOS 15.0+ and I need to get URL of active tab in popup.js and display. Here is how I do that in popup.js: document.getElementById("activetaburl").innerHTML = document.URL As result it returns path of current popup.js Here is my permissions from manifest.json: "permissions": ["nativeMessaging", "activeTab"] And info.plist: <dict> <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <dict> <key>NSExtensionActivationSupportsWebURLWithMaxCount</key> <integer>1</integer> <key>NSExtensionActivationSupportsImageWithMaxCount</key> <integer>10</integer> </dict> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.Safari.web-extension</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string> </dict> </dict> So how to fix the issue above and get url of active tab? Thanks, Serge
2
0
2.8k
Jan ’22
TimelineView for Storyboards on Apple Watch?
I've developed workout app for watchOS 8 using Swift and Storyboards. Now, I need ability to update labels every second but in both modes: active and inactive. According to documentation "TimelineView" should help me but it's for SwiftUI only: https://developer.apple.com/documentation/swiftui/timelineview So, are there any options for Storyboards?
2
0
861
Jan ’22
Create TestFlight build with Apple Developer "Individual" Program
Hi guys, I received permissions as admin role for Apple Developer "Individual" Program. In permissions it says I could create new build updates and send to TestFlight. The problem is that in Xcode I don't my team and don't have access to manage certificates. How to resolve the issue? Thank you in advance.
Replies
0
Boosts
1
Views
366
Activity
Feb ’24
How to manage view when model the same but different views?
Hi, What is the best architecture/design approach for SwiftUI app where we have same data but could be slightly different or totally different views for iPhone and iPad? How to avoid code redundant? If there is some example I would really appreciate. Thanks.
Replies
3
Boosts
0
Views
815
Activity
Jan ’22
How to get URL of active tab from popup.js with Safari iOS App Extension in iOS 15?
I'm developing Safari App Extension for iOS 15.0+ and I need to get URL of active tab in popup.js and display. Here is how I do that in popup.js: document.getElementById("activetaburl").innerHTML = document.URL As result it returns path of current popup.js Here is my permissions from manifest.json: "permissions": ["nativeMessaging", "activeTab"] And info.plist: <dict> <key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>NSExtensionActivationRule</key> <dict> <key>NSExtensionActivationSupportsWebURLWithMaxCount</key> <integer>1</integer> <key>NSExtensionActivationSupportsImageWithMaxCount</key> <integer>10</integer> </dict> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.Safari.web-extension</string> <key>NSExtensionPrincipalClass</key> <string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string> </dict> </dict> So how to fix the issue above and get url of active tab? Thanks, Serge
Replies
2
Boosts
0
Views
2.8k
Activity
Jan ’22
Is it possible to use SwiftUI in Storyboards on Apple Watch?
Is it possible to use SwiftUI in Storyboards on Apple Watch using WKHostingController like on iOS?
Replies
1
Boosts
0
Views
617
Activity
Jan ’22
TimelineView for Storyboards on Apple Watch?
I've developed workout app for watchOS 8 using Swift and Storyboards. Now, I need ability to update labels every second but in both modes: active and inactive. According to documentation "TimelineView" should help me but it's for SwiftUI only: https://developer.apple.com/documentation/swiftui/timelineview So, are there any options for Storyboards?
Replies
2
Boosts
0
Views
861
Activity
Jan ’22