ayoubamine / flutter_tawk Goto Github PK
View Code? Open in Web Editor NEWTawk widget for Flutter.
Home Page: https://pub.dev/packages/flutter_tawk
License: MIT License
Tawk widget for Flutter.
Home Page: https://pub.dev/packages/flutter_tawk
License: MIT License
The existing version is not compatible with latest null safety.
playstore rejected application due to this package.how to solve?
File select button not working
done
I using flutter_summernote and flutter_tawk but flutter_tawk using webview_flutter very old should conflicted
Because no versions of flutter_tawk match >0.1.0 <0.2.0 and flutter_tawk 0.1.0 depends on webview_flutter ^3.0.1, flutter_tawk ^0.1.0 requires webview_flutter ^3.0.1.
Because flutter_summernote >=1.1.0 depends on webview_flutter ^4.0.2 and flutter_summernote >=1.0.0 <1.1.0 depends on webview_flutter ^2.0.8, flutter_summernote >=1.0.0 requires webview_flutter ^2.0.8 or ^4.0.2.
Thus, flutter_tawk ^0.1.0 is incompatible with flutter_summernote >=1.0.0.
So, because sale_soft depends on both flutter_tawk ^0.1.0 and flutter_summernote ^1.0.0, version solving failed.
pub get failed
Hi,
I tried to make a simple 1 page app with the code from the tutorial, but on the webpage version I get:
"Unsupported operation: Trying to use the default webview implementation for TargetPlatform.macOS but there isn't a default one".
What am I doing wrong? Is webpage not supported yet?
I'm getting a platform exception and I'm unable to handle it properly
PlatformException(FWFEvaluateJavaScriptError, Failed evaluating JavaScript., Instance of 'NSError', null)
return Scaffold(
backgroundColor: Colors.white,
body: SafeArea(
child: Obx(
() => Tawk(
directChatLink:
'https://tawk.to/chat/url_part/widget_id',
visitor: TawkVisitor(
name: controllerr.name.value,
email: controllerr.email.value,
),
onLoad: () {},
onLinkTap: (String url) {
},
placeholder: const Center(
child: CircularProgressIndicator(),
),
),
),
),
);
In my app I have set visitor name and email in visitor and when I logout that user and again I login with some other user and configure visitor then I can see previously logged in user's chat. I think there is a caching issue.
Can you let me know how can I fix this. Is there any properties which I can set to fix this caching issue ?
need updates to support nullsafty
Hello, I get this code when I open the chat page. What could be the issue?
(function(global){
global.$_Tawk_AccountKey='';
global.$_Tawk_WidgetId='';
global.$_Tawk_Unstable=false;
global.$_Tawk = global.$_Tawk || {};
(function (w){
function l() {
if (window.$_Tawk.init !== undefined) {
return;
}
window.$_Tawk.init = true;
var files = [
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-main.js',
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-vendor.js',
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-chunk-vendors.js',
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-chunk-common.js',
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-runtime.js',
'https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-app.js'
];
if (typeof Promise === 'undefined') {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-promise-polyfill.js');
}
if (typeof Symbol === 'undefined' || typeof Symbol.iterator === 'undefined') {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-iterator-polyfill.js');
}
if (typeof Object.entries === 'undefined') {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-entries-polyfill.js');
}
if (!window.crypto) {
window.crypto = window.msCrypto;
}
if (typeof Event !== 'function') {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-event-polyfill.js');
}
if (!Object.values) {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-object-values-polyfill.js');
}
if (typeof Array.prototype.find === 'undefined') {
files.unshift('https://embed.tawk.to/_s/v4/app/64795e77f7f/js/twk-arr-find-polyfill.js');
}
var s0=document.getElementsByTagName('script')[0];
for (var i = 0; i < files.length; i++) {
var s1 = document.createElement('script');
s1.src= files[i];
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
}
}
if (document.readyState === 'complete') {
l();
} else if (w.attachEvent) {
w.attachEvent('onload', l);
} else {
w.addEventListener('load', l, false);
}
})(window);
})(window);
I have a issue where if I sign in on auth with another account I can see previous history, I'd there away to stop that?
Unhandled error
PlatformException: PlatformException(runJavascript_failed, Failed running JavaScript, JavaScript string was: ' Tawk_API = Tawk_API || {};
Tawk_API.setAttributes({"name":"User name","email":"[email protected]","hash":"1872"});
'
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'e.Tawk_Window.app.$socket'), WKJavaScriptExceptionColumnNumber=15124, WKJavaScriptExceptionSourceURL=https://embed.tawk.to/_s/v4/app/62835fee0eb/js/twk-chunk-common.js, NSLocalizedDescription=A JavaScript exception occurred}, null)
Location
package:flutter/src/services/message_codecs.dart:607 - StandardMethodCodec.decodeEnvelope
Hi,
I've tried using this library to my flutter project somehow its stuck on "loading" placeholder without load chat window. Direct link fine cause i tried to open via browser is worked.
my Flutter SDK version
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H2, locale en-MY)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
[✓] Android Studio (version 3.5)
[✓] IntelliJ IDEA Community Edition (version 2020.2.3)
[✓] VS Code (version 1.51.1)
[✓] Connected device (2 available)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.