You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
I keep getting this error when I try to create an app:
stdClass Object
(
[status] =>
[code] => 400
[response] => stdClass Object
(
[errors] => Array
(
[0] => Your subdomain must only contain lowercase letters, numbers, and dashes (not as a starting or ending character) and must be between 4 and 14 characters long.
)
)
)
This is the code I'm using to create an app:
use NNV\OneSignal\OneSignal;
use NNV\OneSignal\API\App;
$oneSignal = new OneSignal("<Auth Key Here>");
$app = new App($oneSignal);
$appData = [
'name' => 'My App',
'chrome_web_origin' => "https://my-domain.com",
'chrome_web_sub_domain' => "https://subdomain.os.tc",
'apns_env' => 'production'
];
$response = $app->create($appData);
echo "<pre>", print_r($response), "</pre>";
Any help in fixing this issue is greatly appreciated. :)
The text was updated successfully, but these errors were encountered:
I keep getting this error when I try to create an app:
This is the code I'm using to create an app:
Any help in fixing this issue is greatly appreciated. :)
The text was updated successfully, but these errors were encountered: