Notification not coming in device while not connected to xcode - objective-c

I was testing my app for firebase notification in iPad Air, iPhone 6, iPhone 7
All were working fine for a couple of days. But few day ago I found that notification not coming in iPhone 6 while not connected to Xcode.
I have tried resetting certificates, removing app but not succeed.
I'd I restarted iPhone 6 than it works fine.
I don't know how this was fixed but is there any solution for this.
is there any other issue in my code??
Or there is any solution for resetting notification services from code?
please help me. I don't need restarting the phone.
Thanks in advance!!!

Related

WorkManager not working when app killed in Android 10 although working fine till version 9 (Pie)

I figured out this issue when I wasnt getting the notification through workmanager when the app was killed from background tasks in Android 10.
It is working fine for all the android version till Andorid 9.
To test this, I run the app simultaneously on both 9 and 10 versions.
Is someone else also facing this issue? I searched the web but no support solution for Andorid 10 based issue.
Note: As soon as the app is opened and the workmanager is triggered,
I get the notification in 10 but not when the app is completely
closed. Also, I have tested this scenario on Google Pixel device as well for Android 10 but no success.
There is vast fragmentation in the android world. The background task management is the worst scenario as it will behave different in different devices. Please read the post below to get better understanding.
https://medium.com/mindorks/enable-background-services-in-chinese-roms-32e73dfba1a6
http://pguardiola.com/blog/darealfragmentation-alarms/

centralManagerDidUpdateState always return PoweredOff

In my app I check if bluetooth is turn on, if is turn off I show alert to the user in order to enable it. For this functionality I using centralManagerDidUpdateState and check [central state]. On iOs 10 device works fine, but, on iOs 11 doesn't work, always return CBCentralManagerStatePoweredOff after do this:
1.- I go to configuration and I turn off the bluetooth.
2.- I open the app, the centralManagerDidUpdateState call back is called and PoweredOff is detect.
3.- I go to configuration and I turn on the bluetooth.
4.- I back to the app, and centralManagerDidUpdateState is called and PoweredOff is still the state when the bluetooth is On.
Is this issue an iOs 11 bug?, anyone knows any solution for check the bluetooth is turn on?
Thanks
I also faced with the same issue. I was testing BLE functionality by using this sample project "https://github.com/jasonmgeorge/BLEScanner" one device on iOS 10.3.3 and another on iOS 11.2. On iOS 10.3.3 it was working fine but on the other device, I was getting the same error all the time. Then I realized that
NSBluetoothPeripheralUsageDescription
wasn't in Info.plist, so I added. Again I got "CBCentralManagerStatePoweredOff". I went to settings to power off Bluetooth and on again. It's working magically. It's a iOS 11 bug most probably. Please check your implementation. It's not very consistent but sometimes it works.

Why GSEventLockDevice() not working in ios 7?

I am using GSEventLockDevice() in ios 5 & 6 working fine but not working in iOS 7.
why GSEventLockDevice not working in iOS 7?
Please give me a valuable reason.
GSEventLockDevice() is not a public iOS API function. This worked in iOS 5 and 6 because Apple didn't restrict it properly. Chances are if you uploaded the app for iOS 5 and 6 the app would have been denied it because it's a private API.
If you are developing for jailbroken devices read this how to.
Just to make it clear, programmatically locking an iOS device will get your app rejected.

UAAppReviewManager Rate Function Not Working on iOS 7

Hey Stackoverflow People,
I'm working on implementing the UAAppReviewManager tool developed by Urban Apps (which is basically a super version of Appirater) into my app to have a rating and feedback function. I have devices (running iOS 5/6) where I've tested the Rate feature of the tool and its been able to properly redirect the user to the App Store after they select Rate the App from the pop-up dialogue, but for devices using iOS 7, it redirects the user to the App Store app and displays a pop-up saying the following:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be "ax.itunes.apple.com" which could put your confidential information at risk.
Has anybody used this tool on iOS 7 and encountered this message before? If so, does anyone know what the workaround is? It seems iOS 7 processes things differently underneath with URLs and I'm not doing anything different or specific for earlier versions.
I am the developer of UAAppReviewManager. iOS 7 does not allow this url anymore so it was changed to a new value for iOS 7 in UAAppReviewManager. Update to the most recent (0.1.3) as of this writing and you should be fine

iOS6: iPhone app getting restarted on receiving any type of notification in device

While testing our iPhone app in devices with iOS 6 beta 4, we found an issue wherein if any notification like reminder alert is received or when we pull down the notification curtain, the application is restarting from beginning.
It never used to happen like this till iOS 5.X. Apple release notes or known issues of iOS 6 beta did not mention anything regarding this.
Did anyone faced this issue?
Any comments on whats going wrong?
Check in the app's .plist file to see if application somehow got set not to run in the background.