Post

Replies

Boosts

Views

Activity

Push notifications do not work for Apple Store's app version
Dear all,My iOS application is registered for receiving push notifications from a server. My AppDelegate.m inherits the UNUserNotificationCenterDelegateand it uses thedidRegisterForRemoteNotificationsWithDeviceTokenmethod.In the server side, I used the Java-APN library (https://github.com/CleverTap/apns-http2). By this library, the server is able to send push notifications to the iOS devices.I tested the application in many iPhone devices with iOS version 11.6 to 12.2. The push notifications are sent properly to the iOS devices before I upload the application to Apple Store.After the application was successfully reviewed and it was available on Apple Store, I downloaded and run it on iOS devices. Unfortunately, the application does not receive any push notification. I checked this issue by sending push notification manually using the device token was created, after the application was downloaded from Apple Store. I got “BadDeviceToken” although it seems ok to me the device token in the aspects of its string size.Meanwhile, if I connect any iOS device to my Mac and run the application from Xcode, then the application receives properly the push notifications from the server. The generated device token is valid.Do you have any idea why the push notification is not received by the application when it is downloaded from the Apple Store?Regards,
10
0
14k
May ’19
Access stored files in app's /Documents folder
Dear all,My app writes some files to its /Documents folder.I am using the following code:NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); if (0 < [paths count]) { NSString *documentsDirPath = [paths objectAtIndex:0]; NSString *filePath = [documentsDirPath stringByAppendingPathComponent:fileName]; NSFileManager *fileManager = [NSFileManager defaultManager]; if ([fileManager fileExistsAtPath:filePath]) { //FILE EXISTS .......} else { //FILE DOES NOT EXIST; CREATE IT }The file is created and stored successfully.However, the apps' files can be only accessed from the Xcode through "Window"->"Device and Simulators"->"Download Container".Is it possible to access these file without the assistance of Xcode IDE? For example, the iOS "Files" application does not show them.I tried many free third party applications from Apple Store but without success.Regards,Kostas
3
0
7.6k
Dec ’19