Post

Replies

Boosts

Views

Activity

Physical 16.0 iPhone XS does not show among Xcode targets
I am trying to compile on my iPhone XS device an app on Xcode Version 14.0 beta 2. First time I connected the device it correctly showed among the devices urging me to enable Developer Modality on Privacy & Security. I did it and the iPhone restarted, but once it happened the iPhone disappeared from the targets, thus not allowing me to compile on it. For some strange reason my iPad instead showed, but when I tried to compile on it, Xcode of course urged me to connect it. So it seems Xcode sees not connected device and does not see connected devices. Is anyone able to give a sense to that and possibly a solution?
0
0
907
Jul ’22
ARKIt based app crashes on com.apple.scenekit.scnview-renderer
While showing arifacts my app crashes abruptedly on:com.apple.scenekit.scnview-renderer (21): EXC_BAD_ACCESS (code=1, address=0xed0a7ac80)while I run it from Xcode.No crash is instead produced when running the app by itself.I tried not inserting or deleting nodes while Scenekit was rendering by means of a lock, but that changed nothing.I also submitted a ticket to Apple.Anyone else experiences it and has some solution?
4
1
3k
Sep ’21
Web Safari Notifications
Hullo, I would like to send safari notification when the rss file on my website changes. There are several commercial service that grant it for a quite high monthly feed I may not afford for a non-commercial web site. Is there some tutorial about how to handle the thing both on the back-office and from office, in some way Apple presents a tutorial for the front office, but nothing for the back-office to communicate with it. May someone point me to a solution or a tutorial?
0
0
778
Jun ’21
Safari notification always return denied
I am trying to implement web notifications for Safari with the following code in the client: script var pushId = "pushId"; var pushNotification = function () { if ('safari' in window && 'pushNotification' in window.safari) { var permissionData = window.safari.pushNotification.permission(pushId); checkRemotePermission(permissionData); } else { alert("Push notifications not supported."); } }; var checkRemotePermission = function (permissionData) { console.log("Chiamo checkRemotePermission"); if (permissionData.permission === 'default') { window.safari.pushNotification.requestPermission( 'socket url' pushId, {}, checkRemotePermission ); console.log("Requested"); } else if (permissionData.permission === 'denied') { console.log("denied"); alert("denied"); } else if (permissionData.permission === 'granted') { console.log("The user said yes, with token: "+ permissionData.deviceToken); alert(permissionData.deviceToken) } }; /script button name="subscribe" value="Activate Notifications" onclick="pushNotification()"Activate Notifications/button And on the server side distributed by node.js: var express = require('express'); var app = express(); var port = process.env.PORT || 3000; console.log('entering on port: '+port) app.listen(port); app.get('/', function(req, res) { console.log('get'); res.sendfile('index.html'); }); app.post('/v2/pushPackages/web.net.inarrivo.pizzomarinellafs', function(req, res) { console.log('register'); res.sendfile('pushPackage.zip'); }); app.post(''socket url'/v2/devices/deviceToken/registation/pushId, function(req, res) { console.log(res) }); app.post(''socket url'/v2/log', function(req, res) { console.log(res) }); Yet I always receive 'denied' and it even seems the back office script is not even touched given no console log is written after the first one. The port on which it is listening is 3000, but I have no idea how to set it on the client side. What is strange is that if I change the url in: window.safari.pushNotification.requestPermission( 'url2' pushId, {}, checkRemotePermission ); to a dummy server I get the same denied answer, like the server were never connected anyway. May someone help to have this thing working?
Topic: Safari & Web SubTopic: General Tags:
0
0
1.3k
Apr ’21
WatchKit App doesn't contain any WatchKit Extensions.
Quite abrupdedly my project stopped executing by reporting error:error: WatchKit App doesn't contain any WatchKit Extensions. Verify that the value of NSExtensionPointIdentifier in your WatchKit Extension's Info.plist is set to com.apple.watchkit.Of course NSExtensionPointIdentifier is correctly set to com.apple.watchkit.What could it be and how to fix it?This is the relevant part of the info.plist file:<key>NSExtension</key> <dict> <key>NSExtensionAttributes</key> <dict> <key>WKAppBundleIdentifier</key> <string>com.information.inArrivo.watchkitapp</string> </dict> <key>NSExtensionPointIdentifier</key> <string>com.apple.watchkit</string> </dict>
10
0
11k
Mar ’21