We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello I can't seem to find where to set ios Focus levels in the API.
The field would be ios_interruption_level, which I want to set to TimeSenstive, but doesn't appear in the notification properties.
Is it somewhere else?
The text was updated successfully, but these errors were encountered:
@ryansalt did you ever figure out how to do this?
Sorry, something went wrong.
In case it helps anyone, one way I found to get this working was to sub-class Notification and add the property:
public class OneSignalNotification : Notification { public OneSignalNotification(string appId) : base(appId: appId) { } [DataMember(Name = "ios_interruption_level", EmitDefaultValue = true)] public string IosInterruptionLevel { get; set; } }
This can be assigned values such as "active" or "time_sensitive".
Hopefully future versions of this API include a IosInterruptionLevel property so that this is not necessary.
No branches or pull requests
How can we help?
Hello
I can't seem to find where to set ios Focus levels in the API.
The field would be ios_interruption_level, which I want to set to TimeSenstive, but doesn't appear in the notification properties.
Is it somewhere else?
Code of Conduct
The text was updated successfully, but these errors were encountered: