Comments (5)
I'm interested to work on it. But I wanna know more about the issue.
from robosats.
Hey @tarunsamanta2k20 ,
Our mobile app (in /mobile
) is a simple Webview wrapper of our web app. The index.html
, main.js
and static files (including the sounds) are bundled within our Android APK (in /mobile/html/Web.bundle
). On our webapp, on the browser, sounds like this:
robosats/frontend/src/components/Notifications/index.tsx
Lines 34 to 39 in 5d5435e
And then
robosats/frontend/src/components/Notifications/index.tsx
Lines 213 to 215 in 5d5435e
It would be great to find a solution so the Audio works in both: web browser, and Webview (loading the local file). It is likely that sounds do not play in Webview simply because the path to the files is different when they have to be read locally from /mobile/html/Web.bundle
(they would likely be file:///
), we usually just use the condition window.NativeRobosats != undefined ? ...
to have a different behavior when the webapp is running within the webview. This might be a straight forward 1 line fix, but maybe not the ideal solution. Instead, playing sounds and notifications from outside the webview
(e.g., passing a message to the react-native wrapper by building new frontend/src/services/systemClient
method) might be a more elegant solution that can be expanded into a join solution for this task and #619 . In fact, this will allow playing notification sounds even with the app in the background I think.
Let me know if you want to give it a try :D
from robosats.
@Reckless-Satoshi I want to give it a try, but wanna know in which interface sound is not working, a web browser or Android app?
from robosats.
which interface sound is not working, a web browser or Android app?
Android App. I kept digging into it to be more clear and ended up fixing the sounds (commit f6601922b80ab339484b ). Given that the sound does now work on the Android app, I think it is better to focus on the notifications task #619 and close this issue. Would you like to take a look at that task? We do definitely need a hand with it! :D
from robosats.
Closing as sounds do now work (only if the app is open or recently open).
from robosats.
Related Issues (20)
- Coordinator ratings over Nostr
- Cannot collaborative cancel before buyer posts invoice HOT 3
- Server not available? pending contract HOT 2
- Onchain deposit with PSBTs HOT 5
- [federation]: coordinator 'BitcoinVeneto' HOT 9
- Stuck on Sending satoshis to buyer Order status HOT 2
- Telegram notifications HOT 2
- Filtering by multiple payment methods HOT 6
- Incorrect Sats now for Swaps HOT 4
- [feat] Ability to Upload Images in Chat HOT 3
- Buyer stucks on last step while preparing an order
- Coordinator is not being notified for new disputes in Telegram HOT 1
- Not possible to create a second order with the same robot HOT 1
- Api and website URL issues HOT 2
- POST api/order/ cancel returns error 400 bad_request when successful HOT 1
- Html instead of json output returned when wrong token in Header Authorization
- Upload the Android App to a F-Droid repository HOT 32
- android app nostr link not using njump HOT 2
- Chat delays when in active order HOT 2
- POST /api/order cancel should include current status HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robosats.