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
let env = env_vars(); let client = fcm::Client::new(); let mut map = HashMap::new(); map.insert("title", title); map.insert("body", body); if let Some(link) = deeplink { map.insert("link", link); } let mut builder = fcm::MessageBuilder::new(&env.google_cloud_private_key, token); match builder.data(&map) { Ok(_) => println!("Data added to builder"), Err(e) => { println!("Failed to add data to builder: {:?}", e); return Err(e.into()); } } let message = builder.finalize(); let response = client.send(message).await; println!("Android Push Notification: {:?}", response); Ok(())
I get
Android Push Notification: Err(ServerError(None))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I get
Android Push Notification: Err(ServerError(None))
The text was updated successfully, but these errors were encountered: