Post

Replies

Boosts

Views

Activity

Making a task while phone is locked works on simulator, but not on physical device
I am working on an app that makes a custom alarm so I am using long music from outsourced platforms like Spotify, everything is done but the current issue is when I try to play the music when the phone is locked it doesn't work on a physical device but works on the simulator!, what I am doing is schedule a local notification to turn on the screen at this time then play the music from a scheduled timer. Here is the snippet of the code responsible for this. let timer = Timer(timeInterval: time.timeIntervalSinceNow, repeats: false) { timer in // Doing the task here! playAlarm() } RunLoop.current.add(timer, forMode: .common) Note: To run this task when the phone is locked I am sending a local notification at this time to turn on the screen to make it possible to run this task. Please let me know if this is possible as I see some apps doing this
0
0
773
Jan ’23
issue happened while archiving Xcode project from m1 chip
I built a MacOs app, and it works fine, but the problem happens when I achieve the project. When I tried from an old Xcode version (12.3) Macbook Pro late 13 it works But when I run from Macbook pro-2020 (M1 chip), the issue happened while archiving, and works fine while running, I use Xcode 14 beta. The app is written in objective-c I get this error: /Users/usamafouad/Downloads/Oil Paint - Mac/Oil Paint App/frameworks/Source/Mac/GPUImageMac-Prefix.pch error build: Build input file cannot be found: '/Users/usamafouad/Library/Developer/Xcode/DerivedData/Oil_Paint-dywawlmfpsulhqapvsuiigxhgkrs/Build/Intermediates.noindex/ArchiveIntermediates/Oil Paint/InstallationBuildProductsLocation/@loader_path/../Frameworks/GPUImage.framework/Versions/A/Modules/module.modulemap' Could you please help me, it's an urgent issue?
0
0
1k
Jul ’22
Couldn't add Javascript code to iOS safari extension app
I am building a safari extension app. the code(html, css, javascript) for the safari extension that is in the AppExtension directory works good, but when I added button to Main.html to make an Action, to make the app dynamically change (the application itself not the extension), and I want to send data from the app to the extension on Safari. Could anyone help me to fix this issue. This my html code: <!--Main.html --> <!DOCTYPE html> <html> <head>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">     <meta http-equiv="Content-Security-Policy" content="default-src 'self'">     <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">     <link rel="stylesheet" href="../Style.css">     <script src="../Script.js" defer></script> </head> <body> <!--The makeAction() function is defined in the `Script.js` file -->         <button onclick="makeAction()">Dropdown</button> </body> </html> And this is the files structure
1
1
1.1k
Jul ’22
Making a task while phone is locked works on simulator, but not on physical device
I am working on an app that makes a custom alarm so I am using long music from outsourced platforms like Spotify, everything is done but the current issue is when I try to play the music when the phone is locked it doesn't work on a physical device but works on the simulator!, what I am doing is schedule a local notification to turn on the screen at this time then play the music from a scheduled timer. Here is the snippet of the code responsible for this. let timer = Timer(timeInterval: time.timeIntervalSinceNow, repeats: false) { timer in // Doing the task here! playAlarm() } RunLoop.current.add(timer, forMode: .common) Note: To run this task when the phone is locked I am sending a local notification at this time to turn on the screen to make it possible to run this task. Please let me know if this is possible as I see some apps doing this
Replies
0
Boosts
0
Views
773
Activity
Jan ’23
How to communicate between the Safari extension and it's application?
I want to send data between the app and the Safari extension, I don't found any helpful resources for that.
Replies
1
Boosts
0
Views
861
Activity
Jul ’22
issue happened while archiving Xcode project from m1 chip
I built a MacOs app, and it works fine, but the problem happens when I achieve the project. When I tried from an old Xcode version (12.3) Macbook Pro late 13 it works But when I run from Macbook pro-2020 (M1 chip), the issue happened while archiving, and works fine while running, I use Xcode 14 beta. The app is written in objective-c I get this error: /Users/usamafouad/Downloads/Oil Paint - Mac/Oil Paint App/frameworks/Source/Mac/GPUImageMac-Prefix.pch error build: Build input file cannot be found: '/Users/usamafouad/Library/Developer/Xcode/DerivedData/Oil_Paint-dywawlmfpsulhqapvsuiigxhgkrs/Build/Intermediates.noindex/ArchiveIntermediates/Oil Paint/InstallationBuildProductsLocation/@loader_path/../Frameworks/GPUImage.framework/Versions/A/Modules/module.modulemap' Could you please help me, it's an urgent issue?
Replies
0
Boosts
0
Views
1k
Activity
Jul ’22
Couldn't add Javascript code to iOS safari extension app
I am building a safari extension app. the code(html, css, javascript) for the safari extension that is in the AppExtension directory works good, but when I added button to Main.html to make an Action, to make the app dynamically change (the application itself not the extension), and I want to send data from the app to the extension on Safari. Could anyone help me to fix this issue. This my html code: <!--Main.html --> <!DOCTYPE html> <html> <head>     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">     <meta http-equiv="Content-Security-Policy" content="default-src 'self'">     <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">     <link rel="stylesheet" href="../Style.css">     <script src="../Script.js" defer></script> </head> <body> <!--The makeAction() function is defined in the `Script.js` file -->         <button onclick="makeAction()">Dropdown</button> </body> </html> And this is the files structure
Replies
1
Boosts
1
Views
1.1k
Activity
Jul ’22