Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

when I set enableLocationRequest(true) there are tree options in the popup but only one resolves #184

@janossuta

Description

@janossuta

Hi,

When I set enableLocationRequest(true) on iOS there are tree options in the popup but only one resolves the other two get rejected.

webp net-resizeimage 7

When I tap on the Always Allow it resolves and I can set the location immediately
but if I choose Only while using the App it get rejected but the location is available if I tap again on the get location button.
Finally, if I choose Don't allow it get rejected also.

this is how I use it

getLocation() {      
        
        isEnabled().then(isLocationEnabled => {                 
            if (isLocationEnabled) {
                this.useLocationService();
            } else {
                enableLocationRequest(true).then(() => {                    
                    this.useLocationService();
                },(err)=>{
                    console.log(err);
                });               
            }            
        }, function (e) {
            console.log("Location error received: " + (e.message || e));
        });  
    }
	
	
useLocationService(){
       
        getCurrentLocation({
            desiredAccuracy: Accuracy.high,
            timeout: 5000
        })
            .then(location => {

                console.log(location.longitude, location.latitude); 
            }).catch(error => {
                 console.log('Location ERROR: ');
                 console.log(error);
                 console.log(localize('cant_update_the_location'));      
            });
    }

So my question is, how can I tell the difference between the two rejection?

Which platform(s) does your issue occur on?

  • iOS
  • emulator and device

Please, provide the following version numbers that your issue occurs with:

version: "4.3.1",

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions