Skip to content

Run in Android Simulator #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aronnelson opened this issue Aug 16, 2019 · 11 comments
Closed

Run in Android Simulator #105

aronnelson opened this issue Aug 16, 2019 · 11 comments

Comments

@aronnelson
Copy link

Is it possible to get this to run in the Android simulator? If so, what do I need to do?
The callback just shows 0.
I also see this:
Backoff delay duration less than minimum value

@hnvn
Copy link
Member

hnvn commented Aug 17, 2019

What's wrong with Android simulator? I still run it on my Android simulator and see nothing wrong

@aronnelson
Copy link
Author

Thanks for the reply. It doesn't do anything. The callback shows 0 for progress and it just hangs for me. It does work on my Pixel 3a but now I have another problem - probably because I am running Android O. I have the WorkManager is not initialized properly. I am currently unable to solve that one either. It works on a new Flutter app, but as soon as I have location plugin and flutter downloader, I get that "WorkManager is not initialized properly." problem.

@hnvn
Copy link
Member

hnvn commented Sep 24, 2019

Has this issue happened in v1.2.2 yet?

@Moonwing
Copy link

yes , i use v1.3.1 , still have the problem

@lxcyha
Copy link

lxcyha commented Nov 8, 2019

I have this problem too. all of the tasks are in status(1) enqueued. and progress is 0.

@liudonghua123
Copy link

I have the same problem, after call await FlutterDownloader.enqueue, nothing happened.

@bookyo
Copy link

bookyo commented Jun 8, 2020

I have the same problem, after call await FlutterDownloader.enqueue, nothing happened.

I/flutter ( 5204): http://192.168.3.16:4000/videos/201912/05/5de91242d7c8ef5f8c995402/9c6eAadGec3g2GcceAb5.mp4?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVkZDAwM2JhNjE1MDNmMDlmNmY5N2FkNSIsImlhdCI6MTU5MTUwODQyMiwiZXhwIjoxNTkxNzY3NjIyfQ.foVMbFFrZ7zb6E0S7yH8kfnOwbkYHPueLARIdySfvXE&id=5de91242d7c8ef5f8c995402
W/WM-WorkSpec( 5204): Backoff delay duration less than minimum value
I/flutter ( 5204): 852fd6ad-cc27-4734-9dd8-aaa613cbea0e
D/EGL_emulation( 5204): eglMakeCurrent: 0xf6f24a50: ver 2 0 (tinfo 0xf727daf0)
D/EGL_emulation( 5204): eglMakeCurrent: 0xf6f24a50: ver 2 0 (tinfo 0xf727daf0)

run in Android simulator.

@rayxyz
Copy link

rayxyz commented Jun 18, 2020

    var dir = await getApplicationDocumentsDirectory();
    print('dir.path => ' + dir.path);
    final taskId = await FlutterDownloader.enqueue(
      url: url,
      savedDir: dir.path,
      fileName: url,
      showNotification:
          true, // show download progress in status bar (for Android)
      openFileFromNotification:
          true, // click on notification to open downloaded file (for Android)
    );
    print('task id => ' + taskId);

It prints task id and then nothing happens, I'm using pixel_3a_xl_API_R emulator. But it works well on my phone. Does anyone solve the problem?

@liudonghua123
Copy link

    var dir = await getApplicationDocumentsDirectory();
    print('dir.path => ' + dir.path);
    final taskId = await FlutterDownloader.enqueue(
      url: url,
      savedDir: dir.path,
      fileName: url,
      showNotification:
          true, // show download progress in status bar (for Android)
      openFileFromNotification:
          true, // click on notification to open downloaded file (for Android)
    );
    print('task id => ' + taskId);

It prints task id and then nothing happens, I'm using pixel_3a_xl_API_R emulator. But it works well on my phone. Does anyone solve the problem?

It's the same as mine.

@bytemain
Copy link

if you are in China mainland, please see #129
it related to CaptivePortal.

after resolve that by https://hky.moe/archives/162/ , now I can download.

@bartekpacia
Copy link
Collaborator

Closing because of lack of activity. If you have problems, please see issues linked in this thread, there's lots of info in them, especially if you're in China mainland.

@bartekpacia bartekpacia closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants