Giter Site home page Giter Site logo

flutter_snapchat's People

Contributors

ottomated avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

flutter_snapchat's Issues

Can't Sign In User

When I run

Future<void> snapLogin() async {
    var snapchat = SnapchatPlugin();
    await snapchat.init();

    SnapchatUser user = await snapchat.login();
    print("Logged in: " + user.displayName);
  }

I get this as an error then the app crashes

E/AndroidRuntime(  834): FATAL EXCEPTION: OkHttp Dispatcher
E/AndroidRuntime(  834): Process: com.company.app, PID: 834
E/AndroidRuntime(  834): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime(  834): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
E/AndroidRuntime(  834): 	at com.google.gson.Gson.fromJson(Gson.java:927)
E/AndroidRuntime(  834): 	at com.google.gson.Gson.fromJson(Gson.java:865)
E/AndroidRuntime(  834): 	at com.snapchat.kit.sdk.core.networking.e.intercept(SourceFile:85)
E/AndroidRuntime(  834): 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
E/AndroidRuntime(  834): 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
E/AndroidRuntime(  834): 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
E/AndroidRuntime(  834): 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
E/AndroidRuntime(  834): 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
E/AndroidRuntime(  834): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(  834): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(  834): 	at java.lang.Thread.run(Thread.java:919)
E/AndroidRuntime(  834): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime(  834): 	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
E/AndroidRuntime(  834): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
E/AndroidRuntime(  834): 	... 11 more
E/AndroidRuntime(  834): FATAL EXCEPTION: OkHttp Dispatcher
E/AndroidRuntime(  834): Process: com.company.app, PID: 834
E/AndroidRuntime(  834): com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime(  834): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
E/AndroidRuntime(  834): 	at com.google.gson.Gson.fromJson(Gson.java:927)
E/AndroidRuntime(  834): 	at com.google.gson.Gson.fromJson(Gson.java:865)
E/AndroidRuntime(  834): 	at com.snapchat.kit.sdk.core.networking.e.intercept(SourceFile:85)
E/AndroidRuntime(  834): 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
E/AndroidRuntime(  834): 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
E/AndroidRuntime(  834): 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
E/AndroidRuntime(  834): 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:147)
E/AndroidRuntime(  834): 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
E/AndroidRuntime(  834): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(  834): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(  834): 	at java.lang.Thread.run(Thread.java:919)
E/AndroidRuntime(  834): Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
E/AndroidRuntime(  834): 	at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
E/AndroidRuntime(  834): 	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
E/AndroidRuntime(  834): 	... 11 more
I/Process (  834): Sending signal. PID: 834 SIG: 9

Min SDK Version [Docs related issue]

It would be helpful for first-timers for a more detailed guide. For example, the min SDK version isn't mentioned. So it would be helpful to have such things fixed and have a few steps on how to update the minSdkVersion property.

iOS support

Hey, I was just wondering if there is any status update on the iOS support progress?

Package android.support.v4.content does not exist

As the title suggests, every time I compile my app, I get this error

C:\Users\jnbra\Documents\flutter\.pub-cache\hosted\pub.dartlang.org\snapchat-0.0.2\android\src\main\java\net\ottomated\snapchat\FileProvider.java:3: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
                                                            ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':snapchat:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 26s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https://goo.gl/CP92wY for more information on the problem and how to fix it.
*******************************************************************************************
Gradle task assembleDebug failed with exit code 1

Does the Snapchat plugin support AndroidX? Any help with fixing this is much appreciated.

iOS Support

First off, thank you so much for implementing this it saved me big time for Android.

I want to help out with the iOS integration, but wanted to just check in with your progress on iOS before I jump in and start working on it.

Thanks!

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.