pub struct App {Show 34 fields
pub id: Option<String>,
pub name: Option<String>,
pub players: Option<i32>,
pub messageable_players: Option<i32>,
pub updated_at: Option<String>,
pub created_at: Option<String>,
pub android_gcm_sender_id: Option<String>,
pub gcm_key: Option<String>,
pub chrome_web_origin: Option<String>,
pub chrome_key: Option<String>,
pub chrome_web_default_notification_icon: Option<String>,
pub chrome_web_sub_domain: Option<String>,
pub apns_env: Option<ApnsEnvType>,
pub apns_p12: Option<String>,
pub apns_p12_password: Option<String>,
pub apns_certificates: Option<String>,
pub safari_apns_certificates: Option<String>,
pub safari_apns_p12: Option<String>,
pub safari_apns_p12_password: Option<String>,
pub apns_key_id: Option<String>,
pub apns_team_id: Option<String>,
pub apns_bundle_id: Option<String>,
pub apns_p8: Option<String>,
pub safari_site_origin: Option<String>,
pub safari_push_id: Option<String>,
pub safari_icon_16_16: Option<String>,
pub safari_icon_32_32: Option<String>,
pub safari_icon_64_64: Option<String>,
pub safari_icon_128_128: Option<String>,
pub safari_icon_256_256: Option<String>,
pub site_name: Option<String>,
pub basic_auth_key: Option<String>,
pub organization_id: Option<String>,
pub additional_data_is_root_payload: Option<bool>,
}
Fields§
§id: Option<String>
§name: Option<String>
The name of your app, as displayed on your apps list on the dashboard. This can be renamed.
players: Option<i32>
§messageable_players: Option<i32>
§updated_at: Option<String>
§created_at: Option<String>
§android_gcm_sender_id: Option<String>
Android: Your Google Project number. Also known as Sender ID.
gcm_key: Option<String>
Android: Your Google Push Messaging Auth Key
chrome_web_origin: Option<String>
Chrome (All Browsers except Safari) (Recommended): The URL to your website. This field is required if you wish to enable web push and specify other web push parameters.
chrome_key: Option<String>
Not for web push. Your Google Push Messaging Auth Key if you use Chrome Apps / Extensions.
chrome_web_default_notification_icon: Option<String>
Chrome (All Browsers except Safari): Your default notification icon. Should be 256x256 pixels, min 80x80.
chrome_web_sub_domain: Option<String>
Chrome (All Browsers except Safari): A subdomain of your choice in order to support Web Push on non-HTTPS websites. This field must be set in order for the chrome_web_gcm_sender_id property to be processed.
apns_env: Option<ApnsEnvType>
iOS: Either sandbox or production
apns_p12: Option<String>
iOS: Your apple push notification p12 certificate file, converted to a string and Base64 encoded.
apns_p12_password: Option<String>
iOS: Required if using p12 certificate. Password for the apns_p12 file.
apns_certificates: Option<String>
§safari_apns_certificates: Option<String>
§safari_apns_p12: Option<String>
Safari: Your apple push notification p12 certificate file for Safari Push Notifications, converted to a string and Base64 encoded.
safari_apns_p12_password: Option<String>
Safari: Password for safari_apns_p12 file
apns_key_id: Option<String>
iOS: Required if using p8. Unique identifier for the p8 authentication key.
apns_team_id: Option<String>
iOS: Required if using p8. Team ID generated by Apple for your developer account.
apns_bundle_id: Option<String>
iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem.
apns_p8: Option<String>
iOS: Required if using p8. Base64 encoded p8 key
safari_site_origin: Option<String>
Safari (Recommended): The hostname to your website including http(s)://
safari_push_id: Option<String>
§safari_icon_16_16: Option<String>
§safari_icon_32_32: Option<String>
§safari_icon_64_64: Option<String>
§safari_icon_128_128: Option<String>
§safari_icon_256_256: Option<String>
Safari: A url for a 256x256 png notification icon. This is the only Safari icon URL you need to provide.
site_name: Option<String>
All Browsers (Recommended): The Site Name. Requires both chrome_web_origin and safari_site_origin to be set to add or update it.
basic_auth_key: Option<String>
§organization_id: Option<String>
The Id of the Organization you would like to add this app to.
additional_data_is_root_payload: Option<bool>
iOS: Notification data (additional data) values will be added to the root of the apns payload when sent to the device. Ignore if you’re not using any other plugins, or not using OneSignal SDK methods to read the payload.