Meet Group Activities

RSS for tag

Discuss the WWDC21 session Meet Group Activities.

Posts under wwdc21-10183 tag

27 Posts

Post

Replies

Boosts

Views

Activity

Problems Notifications Firebase
I've followed Apple's suggestions to implement push notifications with Firebase, but I can't get notifications. I have created the APNS key in firebase and I have activated the notifications in the app. In Siginig & Capabilities I have added "Push Notification" "Background Modules" activating Remote notifiactions. This is the code in AppDelegate: import UIKit import FirebaseCore import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool{ //Firebase FirebaseApp.configure() // Push Notifications UNUserNotificationCenter.current().delegate = self let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] UNUserNotificationCenter.current() .requestAuthorization( options: authOptions, completionHandler: {_, _ in}) application.registerForRemoteNotifications() Messaging.messaging().subscribe(toTopic:"topic_general") return true } } extension AppDelegate: UNUserNotificationCenterDelegate{ // Push Notifications Mostrar aunque el movil este activo / Segundo Plano func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandle: @escaping (UNNotificationPresentationOptions) -> Void){ completionHandle([.alert, .badge, .sound]) } }
1
0
803
Apr ’22
exec format error while running C++ CGI on browser
Getting the following error while running C++ CGI on browser Error msg in log Mon Jan 10 14:10:56.092728 2022] [cgi:error] [pid 9743] [client ::1:56104] AH01215: (8)Exec format error: exec of '/usr/local/var/www/cgi-bin/web01.cgi' failed: /usr/local/var/www/cgi-bin/web01.cgi [Mon Jan 10 14:10:56.093580 2022] [cgi:error] [pid 9743] [client ::1:56104] End of script output before headers: web01.cgi Regards
0
0
714
Jan ’22
SharePlay in-app navigation
when is it appropriate to listen for activity sessions if my app has multiple screens? Lets say I have an app Main Screen -> List of videos Screen -> Player screen Few cases that I would like to combine: Two people on a call, both have app closed: If I start session inside Player, other participant will open an app on main screen how do I navigate it to the player initially? Should I start listening for activity session on the main screen already and then if session is observed I need to set navigation stack and join session side player when it opens? Two people on a call, both have app opened and watching different contents: If I start session inside Player, other participant will replace it's current playing item with one that is shared how to combines this two cases with one implementation? Or SharePlay is not meant to be leading you right to the player screen when shareplay starts, and users should open same content manually before shareplaying?
1
0
1.1k
Dec ’21
Activity communication issue in Apple Share Play
Hi, Currently I'm working on Share Play. And I struggled a lot on the issue that: In some cases, we need to share what other user(s) is(are) doing, so I made a custom event to share with all participants. But when 2 (or more) users send the activities with custom event at the same (or very similar) time, looks like groupSession ignores other users activities. Is there any way to solve this problem? or any idea to handle this situation? I just used same code with Apple's sample project. (sink completion is not called for other users activity sometimes) groupSession.$activity.sink { [weak self] activity in                     // Set the movie to enqueue it in the player.                     self?.enqueuedMovie = activity.movie                 }.store(in: &subscriptions)
1
0
878
Dec ’21
Detect if app is launched/openend by a SharePlay session
When a user is in a Facetime call and accepted the SharePlay request, I want to push a specific ViewController. So I thought it would be same as to get notification when the user tap "accept". But this was not the case. Nothing were printed out in the logs. Is there another way to know when the app (in the background or terminated) is launched or openend by accepting a SharePlay request ? import UIKit import UserNotifications @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // to perform action when notification is tapped UNUserNotificationCenter.current().delegate = self registerForPushNotifications() return true } func registerForPushNotifications() { UNUserNotificationCenter.current() .requestAuthorization(options: [.alert, .sound, .badge]) { [weak self] granted, error in print("Permission granted: \(granted)") guard granted else { return } self?.getNotificationSettings() } } func getNotificationSettings() { UNUserNotificationCenter.current().getNotificationSettings { settings in print("Notification settings: \(settings)") guard settings.authorizationStatus == .authorized else { return } DispatchQueue.main.async { UIApplication.shared.registerForRemoteNotifications() } } } extension AppDelegate : UNUserNotificationCenterDelegate { func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { let application = UIApplication.shared if(application.applicationState == .active){ print("user tapped the notification bar when the app is in foreground") } if(application.applicationState == .inactive) { print("user tapped the notification bar when the app is in background") } guard let rootViewController = (UIApplication.shared.connectedScenes.first?.delegate as? SceneDelegate)?.window?.rootViewController else { return } // Do some work completionHandler() } }
0
0
1.4k
Nov ’21
Video is not syncing all the time during SharePlay
I am trying to implement SharePlay in one of my apps.  I am calling playbackCoordinator.coordinateWithSession(_:) on my AVPlayer instance with a successfully joined session and both video playback and playback controls are not syncing across devices. Everything seems to look fine except synchronization. Sometimes it is working fine. Playback and Playback controls work fine on connected devices. But this doesn't always work. Sometimes connected devices don't sync at all. If I pause or play then a popup does come stating pause and play event but this does not reflect on other connected users. I am so confused and had no idea about the issue.
0
0
621
Nov ’21
SharePlay Developer Profile not working?
I have been testing my new SharePlay app for many weeks now just fine. Now with the unpleasant surprise that SharePlay is disabled in iOS 15 beta 6 and won't make the 15.0 release, I still want to continue testing my app, but I can't get the SharePlay Developer Profile to re-enabled SharePlay. I have iOS 15 beta 6 on both devices, the new SharePlay Developer Profile installed, and rebooted both devices, and isEligibleForGroupActivities is never true even when on a FaceTime call. So it appears that SharePlay is still disabled even with the profile installed on both devices. Has anyone gotten the new SharePlay Developer Profile to work as intended? Do we need a new Xcode version to get it working again? There hasn't been an Xcode 13 beta 6 released yet so that's the only thing I can think of that might be missing.
9
0
4.1k
Nov ’21
Playback does not sync while coordinating with Group Session
I am attempting to support SharePlay for live video in my app. I am calling playbackCoordinator.coordinateWithSession(_:) on my AVPlayer instance with a successfully joined session and both video playback and playback controls are not syncing across devices. I have installed the SharePlay developer profile on both devices. I verified that I am receiving and joining session objects on all devices and passing it along to the player’s playback coordinator. All session states and activity events are successfully being sent & received; however, playback and playback controls are still not syncing across the devices. Are there any other criteria for playback coordination that I could be missing? Perhaps something I should not be doing with regards to the player? Does SharePlay not work for live video?
1
0
1.3k
Oct ’21
Shareplay not working
I recently downloaded IOS 15.1 expecting to see the shareplay button, but i’m seeing nothing. The person i’m trying to use it with also is updated to 15.1, and i’ve tried everything to get it to work. Please help! This is something I and a lot of other people have been looking forward to and i’m assuming it’s not just my friend and I’s phone who’s aren’t working.
1
0
1.1k
Oct ’21
MacOS Monterey beta 7, SharePlay/GroupActivities is not available when building for Mac Catalyst... was available in betas 2-5.
Hi Apple, please help! In MacOS Monterey betas 2-5, I was able to run GroupActivities on my Mac Catalyst app. When running my app with GroupActivities on MacOS Monterey beta 7, I get an error: "GroupActivities is not available when building for Mac Catalyst. Consider using #if !targetEnvironment(macCatalyst) to conditionally import this framework when building for iOS." No such module 'GroupActivities' Is SharePlay going to be available for Mac Catalyst in an upcoming beta?
1
0
972
Sep ’21
macOS Monterey, internet sharing doesn't show wifi option only Thunderbolt Bridge is available
macOS Monterey, internet sharing doesn't show wifi option only Thunderbolt Bridge is available
Replies
1
Boosts
0
Views
684
Activity
Apr ’22
Problems Notifications Firebase
I've followed Apple's suggestions to implement push notifications with Firebase, but I can't get notifications. I have created the APNS key in firebase and I have activated the notifications in the app. In Siginig & Capabilities I have added "Push Notification" "Background Modules" activating Remote notifiactions. This is the code in AppDelegate: import UIKit import FirebaseCore import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool{ //Firebase FirebaseApp.configure() // Push Notifications UNUserNotificationCenter.current().delegate = self let authOptions: UNAuthorizationOptions = [.alert, .badge, .sound] UNUserNotificationCenter.current() .requestAuthorization( options: authOptions, completionHandler: {_, _ in}) application.registerForRemoteNotifications() Messaging.messaging().subscribe(toTopic:"topic_general") return true } } extension AppDelegate: UNUserNotificationCenterDelegate{ // Push Notifications Mostrar aunque el movil este activo / Segundo Plano func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandle: @escaping (UNNotificationPresentationOptions) -> Void){ completionHandle([.alert, .badge, .sound]) } }
Replies
1
Boosts
0
Views
803
Activity
Apr ’22
How to develop custom VPN app client
Recently, I found the latest ios and xcode can't get the socket.fileDescriptor by let tunFd = self?.packetFlow.value(forKeyPath: "socket.fileDescriptor") as! Int32 I want to know there is another way to implement the custom vpn client for ios or mac os. thanks !
Replies
0
Boosts
0
Views
737
Activity
Mar ’22
Share Play / Group Acitivities GDPR
I know that Apple is very aware of privacy concerns. Do Share Play and Group Activities comply with GDPR's legal rules? What kind of servers (e.g. geography) are involved to manage the connection? Thanks Lars
Replies
1
Boosts
0
Views
822
Activity
Mar ’22
RCT folly semantic issue
I am facing issue when running my React Native app on ios the build will failed with the error "RCT folly semantic issue"
Replies
1
Boosts
0
Views
1.8k
Activity
Mar ’22
Opening a facebook campaign with an IOS app
Hey there! As I'm trying to test a game on facebook fro DATA and measurements like installs, clicks and so on, I'm having SKAD Network issues. It take about 2 weeks until I can open a campaign because of this issue. Has anyone encountered this? Thanks :)
Replies
0
Boosts
0
Views
535
Activity
Mar ’22
Error Simulator Xcode
Has anyone had this error when accessing the simulator?
Replies
3
Boosts
0
Views
855
Activity
Mar ’22
exec format error while running C++ CGI on browser
Getting the following error while running C++ CGI on browser Error msg in log Mon Jan 10 14:10:56.092728 2022] [cgi:error] [pid 9743] [client ::1:56104] AH01215: (8)Exec format error: exec of '/usr/local/var/www/cgi-bin/web01.cgi' failed: /usr/local/var/www/cgi-bin/web01.cgi [Mon Jan 10 14:10:56.093580 2022] [cgi:error] [pid 9743] [client ::1:56104] End of script output before headers: web01.cgi Regards
Replies
0
Boosts
0
Views
714
Activity
Jan ’22
SharePlay in-app navigation
when is it appropriate to listen for activity sessions if my app has multiple screens? Lets say I have an app Main Screen -> List of videos Screen -> Player screen Few cases that I would like to combine: Two people on a call, both have app closed: If I start session inside Player, other participant will open an app on main screen how do I navigate it to the player initially? Should I start listening for activity session on the main screen already and then if session is observed I need to set navigation stack and join session side player when it opens? Two people on a call, both have app opened and watching different contents: If I start session inside Player, other participant will replace it's current playing item with one that is shared how to combines this two cases with one implementation? Or SharePlay is not meant to be leading you right to the player screen when shareplay starts, and users should open same content manually before shareplaying?
Replies
1
Boosts
0
Views
1.1k
Activity
Dec ’21
Activity communication issue in Apple Share Play
Hi, Currently I'm working on Share Play. And I struggled a lot on the issue that: In some cases, we need to share what other user(s) is(are) doing, so I made a custom event to share with all participants. But when 2 (or more) users send the activities with custom event at the same (or very similar) time, looks like groupSession ignores other users activities. Is there any way to solve this problem? or any idea to handle this situation? I just used same code with Apple's sample project. (sink completion is not called for other users activity sometimes) groupSession.$activity.sink { [weak self] activity in                     // Set the movie to enqueue it in the player.                     self?.enqueuedMovie = activity.movie                 }.store(in: &subscriptions)
Replies
1
Boosts
0
Views
878
Activity
Dec ’21
Detect if app is launched/openend by a SharePlay session
When a user is in a Facetime call and accepted the SharePlay request, I want to push a specific ViewController. So I thought it would be same as to get notification when the user tap "accept". But this was not the case. Nothing were printed out in the logs. Is there another way to know when the app (in the background or terminated) is launched or openend by accepting a SharePlay request ? import UIKit import UserNotifications @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // to perform action when notification is tapped UNUserNotificationCenter.current().delegate = self registerForPushNotifications() return true } func registerForPushNotifications() { UNUserNotificationCenter.current() .requestAuthorization(options: [.alert, .sound, .badge]) { [weak self] granted, error in print("Permission granted: \(granted)") guard granted else { return } self?.getNotificationSettings() } } func getNotificationSettings() { UNUserNotificationCenter.current().getNotificationSettings { settings in print("Notification settings: \(settings)") guard settings.authorizationStatus == .authorized else { return } DispatchQueue.main.async { UIApplication.shared.registerForRemoteNotifications() } } } extension AppDelegate : UNUserNotificationCenterDelegate { func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { let application = UIApplication.shared if(application.applicationState == .active){ print("user tapped the notification bar when the app is in foreground") } if(application.applicationState == .inactive) { print("user tapped the notification bar when the app is in background") } guard let rootViewController = (UIApplication.shared.connectedScenes.first?.delegate as? SceneDelegate)?.window?.rootViewController else { return } // Do some work completionHandler() } }
Replies
0
Boosts
0
Views
1.4k
Activity
Nov ’21
Video is not syncing all the time during SharePlay
I am trying to implement SharePlay in one of my apps.  I am calling playbackCoordinator.coordinateWithSession(_:) on my AVPlayer instance with a successfully joined session and both video playback and playback controls are not syncing across devices. Everything seems to look fine except synchronization. Sometimes it is working fine. Playback and Playback controls work fine on connected devices. But this doesn't always work. Sometimes connected devices don't sync at all. If I pause or play then a popup does come stating pause and play event but this does not reflect on other connected users. I am so confused and had no idea about the issue.
Replies
0
Boosts
0
Views
621
Activity
Nov ’21
SharePlay Developer Profile not working?
I have been testing my new SharePlay app for many weeks now just fine. Now with the unpleasant surprise that SharePlay is disabled in iOS 15 beta 6 and won't make the 15.0 release, I still want to continue testing my app, but I can't get the SharePlay Developer Profile to re-enabled SharePlay. I have iOS 15 beta 6 on both devices, the new SharePlay Developer Profile installed, and rebooted both devices, and isEligibleForGroupActivities is never true even when on a FaceTime call. So it appears that SharePlay is still disabled even with the profile installed on both devices. Has anyone gotten the new SharePlay Developer Profile to work as intended? Do we need a new Xcode version to get it working again? There hasn't been an Xcode 13 beta 6 released yet so that's the only thing I can think of that might be missing.
Replies
9
Boosts
0
Views
4.1k
Activity
Nov ’21
SharePlay: Can an embedded youtube video (iframe) be synched?
I was wondering if one can create an interface that allows a user to enter a youtube video and have it sync across different users using shareplay?
Replies
0
Boosts
0
Views
874
Activity
Oct ’21
Playback does not sync while coordinating with Group Session
I am attempting to support SharePlay for live video in my app. I am calling playbackCoordinator.coordinateWithSession(_:) on my AVPlayer instance with a successfully joined session and both video playback and playback controls are not syncing across devices. I have installed the SharePlay developer profile on both devices. I verified that I am receiving and joining session objects on all devices and passing it along to the player’s playback coordinator. All session states and activity events are successfully being sent & received; however, playback and playback controls are still not syncing across the devices. Are there any other criteria for playback coordination that I could be missing? Perhaps something I should not be doing with regards to the player? Does SharePlay not work for live video?
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’21
which method in app delegate get called when user joins shareplay
I am trying to implement SharePlay using Uikit. How to detect when a user clicked the shareplay join button during facetime call from app delegate? Like which method is getting called?
Replies
0
Boosts
0
Views
523
Activity
Oct ’21
SharePlay not working on MacOS Monterey RC 1
Will SharePlay be added later? Will there be another shareplay profile we can download with an upcoming beta? I'm able to see there is an ability to send or receive an invite but when it's initiated nothing happens.
Replies
0
Boosts
0
Views
751
Activity
Oct ’21
Shareplay not working
I recently downloaded IOS 15.1 expecting to see the shareplay button, but i’m seeing nothing. The person i’m trying to use it with also is updated to 15.1, and i’ve tried everything to get it to work. Please help! This is something I and a lot of other people have been looking forward to and i’m assuming it’s not just my friend and I’s phone who’s aren’t working.
Replies
1
Boosts
0
Views
1.1k
Activity
Oct ’21
MacOS Monterey beta 7, SharePlay/GroupActivities is not available when building for Mac Catalyst... was available in betas 2-5.
Hi Apple, please help! In MacOS Monterey betas 2-5, I was able to run GroupActivities on my Mac Catalyst app. When running my app with GroupActivities on MacOS Monterey beta 7, I get an error: "GroupActivities is not available when building for Mac Catalyst. Consider using #if !targetEnvironment(macCatalyst) to conditionally import this framework when building for iOS." No such module 'GroupActivities' Is SharePlay going to be available for Mac Catalyst in an upcoming beta?
Replies
1
Boosts
0
Views
972
Activity
Sep ’21
SharePlay through iOS Simulator
Is it possible to use and debug SharePlay through the iOS Simulator like with iMessage apps?
Replies
3
Boosts
0
Views
2.7k
Activity
Sep ’21