Code Monkey home page Code Monkey logo

roam-flutter's People

Contributors

bullseye34 avatar jothipriyadharshanr avatar kumargeospark avatar manojadithya avatar sahil-roam avatar vamshi-roam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

roam-flutter's Issues

HARD TO READ EXAMPLE CODE

Can yall guys make a better example. That's be hard to read and i'm cannot understand with this examples

MissingPluginException on Android

I got this message when I tried to run the initialize on Android:

Caught unhandled_exception: MissingPluginException(No implementation found for method initialize on channel roam_flutter)

I also got this message on the example app.

Migrate package to support null safety

๐Ÿ— Enhancement Proposal

With sound null safety in stable we should migrate the package to support it. Users using in Flutter stable will get this dart analysis warning.

The library 'package:roam_flutter/roam_flutter.dart' is legacy, and should not be imported into a null safe library.
Try migrating the imported library.

Migration guide

https://dart.dev/null-safety/migration-guide

Stream of current user location.

Hello @jothipriyadharshanr

I have flow all the steps adding SDK to flutter. and it working but when I startTracking there are not methods available to track the user's current location. (if there are I did not find them on docs.).

Can you please let me know if there are any methods or streams available for continuous user tracking?

Thanks in advance.

On iOS using Flutter Roam.initialise() never returns?

Hi,
I am trying this out in a flutter app on iOS.

The following code, never returns.

await Roam.initialize(publishKey: Constants.roamId).then((value) {
  debugPrint('[[MJ]] ==> isInitialized $value');
}).catchError((e) {
  debugPrint('isInitialized error $e');
});

Neither does this:
await Roam.initialize(publishKey: Constants.roamId);

If I do not await the initialization, and go ahead with tracking and subscription -- app crashes on iOS.
Screenshot 2022-05-09 at 2 56 57 PM

I tried posting on the Support forums -- but they are having trouble sending a validation key to my email for the past 2 days -- so I can not post there!

Any help will be appreciated.

Android - Either publishable_key or package_name is wrong

I'm just testing your plugin on an Android device and when I call Roam.initialize() the console prints:

E/GS402   (15207): Either publishable_key or package_name is wrong
W/Gralloc3(15207): mapper 3.x is not supported
I/gralloc (15207): Arm Module v1.0

The publishable_key isn't wrong because is provided by the Dashboard and I just copy and paste it.
The app I created is very simple, is pretty easy to reproduce the error.

This is my code:

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:roam_flutter/roam_flutter.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  Future<void> init() async {
    Roam.initialize(publishKey: "PUBLISH_KEY");

    await Roam.getUser(
        userId: "USER_ID",
        callBack: ({user}) {
          print(user);
        });

    final startTrackingResult = await Roam.startTracking(
      trackingMode: "active",
    );

    print("startTrackingResult: $startTrackingResult");
  }

  @override
  void initState() {
    init();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text("Roam"),
      ),
    );
  }
}

PS. About the Android configuration, I've added all the permissions in the AndroidManifest.xml file (as is shown in the guidelines), the targetSdkVersion is 32, and the compileSdkVersionis 32as well.

The plugin version is roam_flutter: ^0.1.5.

In release mode, RoamCallback.onFailure is being called on Roam.getUser

While I'm testing Roam.getUser on android in debug mode, everything is fine. But, when I built the app in the release mode, some exceptions started to be thrown.

I edited the RoamFlutterPlugin.java to return the error of Roam.getUser for the flutter side using MethodChannel.Result as follow:

@Override
public void onFailure(RoamError roamError) {
  result.error(
    "roam_" + roamError.getCode(),
    roamError.getMessage(),
    null
  );
}

So I saw on my logs that roamError.getCode() returns "GS402" and roamError.getMessage() returns JSON response error. But, I couldn't discover anything beyond that.

Is there anything else that I can do?

How to subscribe to a location of the user in flutter

I have used roam's roam.startTracking() to start tracking. I want to know how to subscribe to this location and show the location data in another flutter application. I have tried roam.subscribeUserLocation("userId"), but it returns a bool.

How can I achieve this task of getting the location from one device and showing geo coordinates of that user, on another device in Flutter SDK?

Test Issue

Test issue to connect with JIRA service desk

iOS - Location services error or permissions not granted

Hi,
When I call Roam.startTracking(trackingMode: "active") is printed the error Location services error or permissions not granted, but as a response, I receive true. (but the tracking doesn't work)

Before tracking the user, I successfully call Roam.initialize() and Roam.getUser(). (I get the user).
Am I doing something wrong?

I receive this error on iOS, as you can see by the attached pictures I configured the platform as shown.
Furthermore, the app has all the permissions to access the location (also locationAlways), and the localization is turned on.

PS. I'm using the roam_flutter: ^0.1.5 version and the global platform of the project (in the Podfile) is 14 as it is in your example app.

build_settings info background_mode

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.