Skip to content
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

Is it possible to use Dart / Flutter with hoodie? #149

Open
h4xhor opened this issue Sep 19, 2019 · 0 comments
Open

Is it possible to use Dart / Flutter with hoodie? #149

h4xhor opened this issue Sep 19, 2019 · 0 comments

Comments

@h4xhor
Copy link

h4xhor commented Sep 19, 2019

Hi Hoodies,
I've started hoodie at http://localhost:8080.

In Angular Dart (running on port 8081) I've imported the hoodie client in index.html:

<script src="http://localhost:8080/hoodie/client.js"></script>

Then in the code:

import 'dart:js';
var hoodie = context['hoodie'];

bool b = hoodie.hasProperty('connectionStatus'); // b = true

var h = hoodie['connectionStatus'].callMethod('check'); // this errors

The last line errors in the browser console with:

client.js:29746 HEAD http://localhost:8081/hoodie 404 (Not Found)

So it looks like it's using the port that the Angular app is running on.

So just want to ask is it possible to use Hoodie with Dart / Flutter apps? Thanks.

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

1 participant