This is an improvement suggestion.
How?
- #push method is called
- config.json_key_io is nil
- Some Google's env var is nil
Reference: https://github.com/miyataka/fcmpush#usage
What?
The following error is raised:
NoMethodError:
undefined method `gsub' for nil:NilClass
Suggestion
Rescue the NoMethodError and raises a custom error with information regarding the missing configuration
Thanks for your time and for the good work.
How?
Reference: https://github.com/miyataka/fcmpush#usage
What?
The following error is raised:
Suggestion
Rescue the NoMethodError and raises a custom error with information regarding the missing configuration
Thanks for your time and for the good work.