Go to functions dashboard from firebase and click on the three dot menu button then click DETAILED USAGE STATS and from the opening webpage click on edit and make these changes
Set runtime as Node.js6
Set memory allocation as 2gb
Don't forget to change the click_action from all codes if you modifiy the Android Manifiest.
click_action is used for opening the activity which has that intent.