Giter Site home page Giter Site logo

odk-x / skunkworks-bat Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 34.0 1.53 MB

Skunkworks-bat is an Android app for field workers that receives notifications sent by their supervisors through skunkworks-parrot.

License: Apache License 2.0

Java 100.00%

skunkworks-bat's People

Contributors

ak8527 avatar codeknight3 avatar dreamyphobic avatar iamvasuh avatar jbeorse avatar laddha-adi avatar linl33 avatar maprehensive avatar shubhamr837 avatar thesherrinford avatar udhay24 avatar wbrunette avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

skunkworks-bat's Issues

Home Screen is empty.

Current Behaviour
Home screen shows nothing for now.

Expected Behaviour
I think there should be a list of all the notifications on the home screen with an option to filter w.r.t group and also an option to sort according to our need.

FirebaseApp has not been initialized properly.

W/System.err: java.io.FileNotFoundException:/storage/emulated/0/opendatakit/default/config/assets/google-services.json (No such file or directory)
W/System.err: at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:200)
at java.io.FileInputStream.(FileInputStream.java:150)
at org.odk.odknotifications.Activities.MainActivity.loadJSONFromAsset(MainActivity.java:134)
at org.odk.odknotifications.Activities.MainActivity.readConfigFile(MainActivity.java:457)
at org.odk.odknotifications.Activities.MainActivity.requestStoragePermission(MainActivity.java:494)
at org.odk.odknotifications.Activities.MainActivity.onCreate(MainActivity.java:97)

Application crashes when account is not configured and sync button from the menu is clicked

Android Device Used:
Xiaomi Redmi Note 5, Android Api 27.
Problem Description
When odk services isn't configured the sync button causes application to crash instead of an error message.
Steps To Reproduce

  1. Download the ODK notify App on your android Device.
  2. Make sure you havent configured the server in Odk services application . If configured remove the configuration.
  3. Open the application and select the Sync Option from the menu.
    Expected Behaviour
    Sync is not possible Without Server configuration, so the option should be disabled .
    . Gif image attached

20191107_101103

New Notification does'nt appear in application when application is open.

When the application is open and a new notification is received the notification is delivered but in the application it is not visible .
The application has to be closed and opened again for the new notification to appear .

Steps to reproduce :-
1 . open the application ( configured firebase and synced ).
2 . send a notification .
3 . close and open the application again .

after the 3rd step the notification would be visible in the application but it would not be visible in step 2 after receiving the notification .

FirebaseApp still getting initialized twice.

Steps to reproduce:
Assuming that google-servies.json is located at the correct place.

  1. Open the app and make sure it doesn't show any warning.
  2. Click on Scan QR button.
  3. After scanning code, the app is reopened by intent through the link.
  4. Here, the app crashes because of twice initialization of FirebaseApp.

SavedInstances method doesn't work because here the app has reopened, it isn't able to fetch the value of hasbeenInitialized boolean.

Show a message when there's no notification present on Home screen

Issue

Home screen appears empty when there's no notification present as shown below in given screenshot.

Annotation 2020-03-17 130129

Expected

It should display some message like "No Data available" or "No Notifications Received Yet" something like that. For example, see the below screenshot:

Annotation 2020-03-17 130129

Starting issue:

It shows on starting please add odk dependencies to continue.
Nothing like that is mentioned in readme.

Add issue and PR template

Currently, there is no issue and PR template
Add issue and PR template like odk collect

Other Information

please have a look here for the template of odk collect

Application Crashes on selecting sync option from menu .

Application Crashes on selecting sync from menu when sync endpoint is not configured and firebase is configured .
steps to reproduce -:

1 . configure firebase and download the google-services.json file

2 . manually add the google-services.json file to its location .

3 . open the app , the sync button gets enabled as the google-services.json file is found ,
click on the sync button the application would crash .

Add permissions requests

Currently the user must open Services first to grant permissions. This app should handle its permissions requests.

Migrating to AndroidX from support lib

@jbeorse can we migrate to androidX since android support lib is deprecated, as the android documentation says

You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.

We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.

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.