Code Monkey home page Code Monkey logo

Comments (8)

anirudhsharma392 avatar anirudhsharma392 commented on July 17, 2024

@wemersonrv did you found any solution for this ??

from background_locator.

gpibarra avatar gpibarra commented on July 17, 2024

This was written on another issue:

#34 (comment)

from background_locator.

wemersonrv avatar wemersonrv commented on July 17, 2024

@wemersonrv did you found any solution for this ??

Hello. Nope. Unfortunately I couldn't.

This was written on another issue:

#34 (comment)

As @mehdok says on the quoted comment below, it don't has a way to do that... Will need to count on user to reopen app/service to restart captures.

from background_locator.

mehdok avatar mehdok commented on July 17, 2024

Restart-service-on-device-reboot

from background_locator.

wemersonrv avatar wemersonrv commented on July 17, 2024

Restart-service-on-device-reboot

@mehdok Not works here. Did i miss something?!

Below my AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="br.myapp">

    <!-- App permissions -->
    <uses-permission android:name="android.permission.INTERNET"/>

    <!-- Background Location permissions -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>


    <application
        android:name="br.myapp.LocationService"
        android:label="My App"
        android:icon="@mipmap/ic_launcher">

        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
           android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <!-- Background Location configuration -->
        <receiver
            android:name="rekab.app.background_locator.LocatorBroadcastReceiver"
            android:enabled="true"
            android:exported="true"/>
        <service
            android:name="rekab.app.background_locator.LocatorService"
            android:permission="android.permission.BIND_JOB_SERVICE"
            android:exported="true"/>
        <service
            android:name="rekab.app.background_locator.IsolateHolderService"
            android:permission="android.permission.FOREGROUND_SERVICE"
            android:exported="true"/>
		<receiver android:name="rekab.app.background_locator.BootBroadcastReceiver"
            android:enabled="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>

        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

from background_locator.

wemersonrv avatar wemersonrv commented on July 17, 2024

Sorry! My bad!

after about 40 seconds he started the background locator.

Is alive! bwahahahahahahah!

from background_locator.

pkuzco avatar pkuzco commented on July 17, 2024

Is relaunching the service on device reboot supported on iOS?

I see that this plugin calls startMonitoringSignificantLocationChanges on iOS which based on Apple's documentation, the service should be relaunched after a significant location change of 500m or more.
Has anybody tested that this feature works on iOS? I tried both on the emulator and real device - doesn't work on either.

from background_locator.

wemersonrv avatar wemersonrv commented on July 17, 2024

Is relaunching the service on device reboot supported on iOS?

I see that this plugin calls startMonitoringSignificantLocationChanges on iOS which based on Apple's documentation, the service should be relaunched after a significant location change of 500m or more.
Has anybody tested that this feature works on iOS? I tried both on the emulator and real device - doesn't work on either.

This specific feature @mehdok make is for android only...

from background_locator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.