Post not yet marked as solved
macOS Monterey, internet sharing doesn't show wifi option only Thunderbolt Bridge is available
Post not yet marked as solved
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])
}
}
Post not yet marked as solved
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 !
Post not yet marked as solved
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
Post not yet marked as solved
I am facing issue when running my React Native app on ios the build will failed with the error "RCT folly semantic issue"
Post not yet marked as solved
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 :)
Post not yet marked as solved
Has anyone had this error when accessing the simulator?
Post not yet marked as solved
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
Post not yet marked as solved
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?
Post not yet marked as solved
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)
Post not yet marked as solved
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()
}
}
Post not yet marked as solved
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.
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.
Post not yet marked as solved
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?
Post not yet marked as solved
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?
Post not yet marked as solved
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?
Post not yet marked as solved
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.
Post not yet marked as solved
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.
Post not yet marked as solved
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?
Is it possible to use and debug SharePlay through the iOS Simulator like with iMessage apps?