How to use runtime smartphone permissions (locations, contact, gallery) ian cocos creator?

How to use runtime smartphone permissions (ex. locations, contact, gallery etc…) in cocos creator 3.5.* ?

You can call these permissions in the native layer, and then provide a method for the cocos creator to call.