Does iOS 13 has new way of getting device notification token?

You may use this method to fetch the device token on iOS 13 onwards: Objective-C: + (NSString *)stringFromDeviceToken:(NSData *)deviceToken { NSUInteger length = deviceToken.length; if (length == 0) { return nil; } const unsigned char *buffer = deviceToken.bytes; NSMutableString *hexString = [NSMutableString stringWithCapacity:(length * 2)]; for (int i = 0; i < length; ++i) { … Read more

iOS sending push with APNs Auth Key: suddenly “403 Forbidden: {“reason”:”InvalidProviderToken”}”

we have exactly the same problem when sending pushes to different team ids using the same connection. The steps to reproduce are: Open a connection to APNS and use the same connection to: Send a token based push to topic com.companyA.xxx of team id 1234: APNS accepts and delivers the push successfully. Send a token … Read more

How to send APNs push messages using APNs Auth Key and standard CLI tools?

If you have curl with HTTP/2 support and openssl with ECDSA support installed on your machine, you can use the following script to test push notifications using an APNs Auth Key: #!/bin/bash deviceToken=b27371497b85611baf9052b4ccfb9641ab7fea1d01c91732149c99cc3ed9342f authKey=”./APNSAuthKey_ABC1234DEF.p8″ authKeyId=ABC1234DEF teamId=TEAM123456 bundleId=com.example.myapp endpoint=https://api.development.push.apple.com read -r -d ” payload <<-‘EOF’ { “aps”: { “badge”: 2, “category”: “mycategory”, “alert”: { “title”: “my … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)