Git Product home page Git Product logo

hvzhub-mobile's People

Contributors

aedanflynn avatar steenburgh avatar thomas-kuhn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

aedanflynn

hvzhub-mobile's Issues

On android 4.4, Messages in the DB are ordered incorrectly.

Needs further investigation.
As of right now if you exit the app and receive more than one notification, the messages appear to come in in a completely random order. For example if I send 1 2 3 4 5, it might show up like 2 5 3 4 1 in both the notification and chat.

While the chat is open, however, or if chat is refreshed, the notifications appear in the correct order, which makes me believe that this is the DB's fault, not the GCM service's fault.

Add a message when there is no content in views

Currently if there are no mod updates/chats/missions/etc, the user will just see an empty screen. We need to add a message that alerts the user that the view is actually supposed to be empty so they don't assume something went wrong.

[Chat] Merge multiple chats from the same user

If the same user sends multiple chats, only display the timestamp and username once.

For Example, this...

Duncan                           12:15pm
3 Zombies spotted by Van Vleck

Duncan                           12:17pm
Update: Looks like there's about 4-5 of them now.

Becomes...

Duncan                           12:17pm
3 Zombies spotted by Van Vleck
Update: Looks like there's about 4-5 of them now.

Release the app on the play store

This Issue represents a short list of things that have to be removed from the code before release:

  • Remove okhttp logging from ServiceGenerator.java and app/build.gradle
  • Change the API Url to point to the real website.
  • Remove debug strings from strings.xml
  • Remove Log calls
  • Optimize APK size. Example: shrinkResources true
  • Generate signed APK
  • Double check that the google maps API key is working when users download from the play store

Add swipe to refresh to game status screen

This will allow users to refresh the game status screen on demand instead of having to reload the entire app each time.

Duncan: If you don't know where to start with this, it'd be a good idea to take a look at how I did this for news and mod updates.

Add a notification icon

Currently, there is a placeholder notification icon. We need a better icon before the round starts. Of note is that we cannot simply use the app icon. As of 5.0, Android requires notification icons to be white:

Update or remove assets that involve color. The system ignores all non-alpha channels in action icons and in the main notification icon. You should assume that these icons will be alpha-only. The system draws notification icons in white and action icons in dark gray.

Write chat send + get methods in the API wrapper that return mock data

Implement methods to send + get chats in the API wrapper.

These methods will use fake data and not actually connect to the server. This will allow us to simply change the API wrapper later when the API routes for chat are done without having to worry about modifying ChatActivity. The API methods should follow the similar patterns to those used in 'API.login()' to keep code in the API wrapper consistent.

Chat.json parameters

These will probably be the same in the final API implementation, so the API wrapper needs to support these:

  • h means 'human' if h=T, you're requesting the human chat. Otherwise you're requesting zombie chat
  • i means 'initial' and represents the index of the first message to get
  • l means 'length' and represents the number of messages to get

Implement Chapter Selection Menu

The following features will be required:

  • List Chapters
  • Join Chapter
  • List Games
  • Join Game

I'd suggest extending ListActivity for straightforward and easy implementation.

Look at /src/app/api/v1/chapters.py in the HvZHub.com repo for more information.

When a user is turned, the app will not react

When a user is turned, they will continue to receive notifications for human chat. The app in general will not respond to this change either. For example, the my code screen will still display.

Notification issues when a user is turned.

When a user is turned, they won't start receiving notifications for zombie chat until either the app is re-opened, or a chat is received. This is not easily fixable without either wasting a ton of battery by constantly checking if the user has been turned, or the HvZHub server sending a GCM message when the user is turned.

Make API error handling more modular

Currently, API error handling consists of lines and lines of copy/pasted code. This code works, but really needs to change as it's extremely prone to bugs. Refactoring common error checking routines into utility methods is probably the best way to deal with this. For example, checking if the user's session id was invalidated, or checking if they've been turned.

Implement DB for chat fragment

We'll need a database to persist chats. This will allow us to automatically add chats to the DB as GCM notifications come in in order to reduce loading time of the chat view after a user clicks a notification. This will also significantly reduce load on the HvZHub servers, and improve battery life for app users as it won't have to poll HvZHub for new chats every time the chat fragment is unloaded.

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.