yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] B2OJustin:
Thanks. Do you have any of the sync settings enabled?

Can you confirm that messages are lost even when sync settings are disabled?

The above apk doesn't modify anything related to receiving messages, It's only an attempt at getting sending to work.

Are you on a CDMA or GSM carrier?

Also, if you could attach your messaging.apk as well then that may be useful.
[Xposed Framework Modules] James62370:
Appreciate your help. I did not have any sync settings enabled. I sent a bunch of messages from another phone and my stock messaging app only received one, which I thought was strange. When replying, my carrier number was used. I reverted back to the latest published apk from the xposed installer download area and it started receiving messages again.

I am with T-Mobile which is a GSM carrier. I'm not 100% sure, but I believe the attached is the messaging apk.

I have gone back to having Google Voice forward messages to my stock app, but truly dislike the strange phone numbers associated with the actual numbers in my phone book.

Hope you can fix this issue. In the past I was using an app, I think it was called GV SMS Integration. It was working fine with 4.3, but since upgrading to Android 4.4.2 I have yet to find a solution with using the stock messaging app. Not sure if this helps, I have a T-Mobile Note 2 (SGH-T889) and I'm using eZKAT 2.0 http://xdaforums.com/showthread.php?t=2747733&highlight=enable+air+command

Thanks again.
[Xposed Framework Modules] B2OJustin:
Thanks for the info, that's actually extremely helpful. That version of XVoice+ syncs on incoming messages. Later versions only pull from the GV push, unless "Sync on incoming" is enabled. There are very few other changes, so I'm going to suggest keeping that enabled in your case, until I can find out why that's happening.

The apk was also helpful, your device uses the same modified SmsManager method calls, as I expected.

I've made another attempt at hooking the methods for touchwiz. Feel free to give it a try.

XVoicePlus-b8c785.apk
[Xposed Framework Modules] James62370:
Just tried the last apk you posted and I'm not able to receive any messages, I had sync on receive and sync on send enabled. Sending a message still used carrier number.
[Xposed Framework Modules] B2OJustin:
Thanks, I'm pretty sure the inability to receive is actually an unrelated bug. Keep in mind that in some cases you may need to start the GV app before you actually start receiving the push notifications. You may want to enable sync on boot as well to be sure no messages are dropped. I'll try to make that a little more consistent at some point. If you're able to sort out exactly what's causing it let me know.

I've compiled another experimental version which MAY fix the touchwiz sending issue.

XVoicePlus-bf19e6.apk

Edit:

Also, this version adds some additional information to the logs. It will log the method signature for every hooked method. Look for something like this:

com.runnirr.xvoiceplus.XVoicePlus﹕ Hooked standard SmsManager methods
com.runnirr.xvoiceplus.XVoicePlus﹕ Hooked method android.telephony.SmsManager.sendTextMessage([String, String, String, PendingIntent, PendingIntent])
com.runnirr.xvoiceplus.XVoicePlus﹕ Hooked method android.telephony.SmsManager.sendMultipartTextMessage([String, String, ArrayList, ArrayList, ArrayList])

In your case there should be some additional methods listed.
[Xposed Framework Modules] James62370:
So with the latest apk I was able to receive messages without enabling any syncs at all and was feeling pretty optimistic, however when sending messages, it's still using my carrier number.
[Xposed Framework Modules] B2OJustin:
Thanks, there was still no changes made in receiving. Sounds like you just might want to be sure to start GV when you boot. If it still drops messages after that let me know.

For sending, is there any chance you could check the logcat during boot? It will tell us which methods were successfully hooked.
[Xposed Framework Modules] erraggy:
I gave this version a shot and captured what it logged when it failed to route my message to GV.

Here is the log file for everything xvoice+ logged:

https://www.dropbox.com/s/7gf34mn1yydan3w/2014-09-01_09-28-15.log?dl=0
[Xposed Framework Modules] B2OJustin:
For anyone that may be interested, I have updated the OP with a link to the newest RC build. It includes support for touchwiz and (hopefully) sense based ROMs.

Many thanks to [MENTION=3341670]erraggy[/MENTION] for all the testing on touchwiz!
[Xposed Framework Modules] James62370:
Thanks for this latest release!! I'm happy to report that sending with stock app is now working properly (ie recipient see's my GV # instead of carrier#) with Touchwiz on KitKat 4.4.2! The only thing I noticed is when receiving a message with emoji's my messaging app crashes along with my twitter app. Thus not receiving that particular message at all. Sending emoji's on the other hand went through without issue. This was tested from sending a message with emoji's from an iPhone 4S.

I tried to do a logcat, but not sure if I did it correctly. Hopefully it is of some use.

So happy I no longer have to see those weird GV Numbers when using the stock app, and also able to send directly through my phone contacts without having to add those strange numbers!!
[Xposed Framework Modules] redondo_se:
The latest version is working for me in Touchwiz stock messaging on S5. Great Work! Thanks. I have all syncing disabled and I get no duplicates.

Do you think you could improve the syncing logic to better prevent duplicates while still allowing sync to occur? Also, will you be implementing the exclusion to use the carrier for short numbers and 911?

Thanks.
[Xposed Framework Modules] B2OJustin:
Glad to hear it's working for you. I believe the emoji issue has been around for a while now. I'll take a look and see what I can do. It likely has something to do with encoding.

Yes, yes, and yes. I plan to rewrite at least a portion of the refresh code to allow for proper syncs. As it is now, only messages since the last incoming message are synced, regardless of sync settings. That should take care of any duplication issues as well.

There will also be a setting to route blacklisted and short numbers through carrier, likely in the next RC version. If it works as expected then it will be carried forward to the v2.5 release.
[Xposed Framework Modules] James62370:
Just a quick update, when receiving extra long messages, I notice those messages don't get through either. I'm not exactly sure how many characters though.
[Xposed Framework Modules] erraggy:
Do those messages show up in Google Voice? Some phones/carriers send large messages via MMS which isn't really supported by Google Voice.
[Xposed Framework Modules] B2OJustin:
I've been doing a little testing and it looks like receiving anything over 160 characters will cause issues because the message isn't split into multiple PDUs. Also, any characters that aren't contained in the 7bit GSM alphabet will cause errors during encoding. I should be able to fix both of these issues sometime today.
[Xposed Framework Modules] James62370:
They showed up fine with the Google Voice app, which is how I realized they didn't get passed through to the stock app.
[Xposed Framework Modules] blumpkinblake:
Thank you for taking over the project. This module is a lifesaver and when used with google voice, I managed to cut my phone bill down to $10/month while using any messaging app.
[Xposed Framework Modules] kchannel9:
Sooo thankful this is continuing

Sent from my rooted SPH-L900 Sprint/Ting Note 2 running 4.3 MK4 with tripped & disabled KNOX, on Tapatalk
[Xposed Framework Modules] needoZ:
This is amazing work. Thank you very much!
[Xposed Framework Modules] needoZ:
I wonder how this will affect Xvoice if at all?

http://www.androidpolice.com/2014/0...gration-is-currently-rolling-out-in-hangouts/
[Xposed Framework Modules] cadarn07:
As long as you don't enable that option on hangouts, I would assume this module would continue working. Only when they force you to abandon the Google voice app, then there will be problems
[Xposed Framework Modules] CouchFisher:
Hopefully Google updates Hangouts so that xvoice+ isn't needed. Or hopefully xvoice+ is updated so it only works with phone calls so both can exist.
[Xposed Framework Modules] dimex:
I think you're missing the point to what this module does. Set the GV app to make all calls, has nothing to do with Voice+.

I hope the Hangouts integration brings us MMS and forever eliminates the haphazard splitting of conversation threads within GV. I still can't understand the point of that.
[Xposed Framework Modules] cadarn07:
Unfortunately, I believe that the MMS issue is a problem with the carriers and that integration into Hangouts won't really have any affect on that. But the conversation splitting might be fixed. Here's hoping anyway!

---------- Post added at 10:27 AM ---------- Previous post was at 10:26 AM ----------

If your purpose of using XVoice+ is to get Google Voice messages into Hangouts (like I do), then yes, this update will make it so that you won't need this module anymore. But it's usefulness will still live on for everyone who uses apps other than Hangouts.
[Xposed Framework Modules] microzee:
I thought this was the answer to my problem, but its not.

What I currently do is send a message via Google Voice app, then wait for them to respond. The messages are being forwarded to hangouts, via the setting in Google Voice. When I get the message in hangouts, It shows up as the alias number Google Voice assigns. I then save this number as there "Google voice alias number"(in my contacts) and every time I want to start a new conversation, I select this number in hangouts.

I want to be able to send messages through Google voice via hangouts without having to use the Google voice app.

Xvoice+ does fix this. But the problem is, it still uses data just like its going through Google voice. I have pretty much no data where I live. What I want, is an option for it to still send through the carrier. But what it should do is automatically get the alias number, and send a text to that alias number while still showing the normal number/contact in Hangouts.

Does that make sense? Not sure if its possible but I would love this feature.
[Xposed Framework Modules] erraggy:
As far as I know, the only way to send through Google Voice is for an intermediary to intercept the message being sent and hand it off to Google Voice to send instead. This does not allow control of *how* Google Voice transmits the message.

Please, anyone correct me if I'm wrong.
[Xposed Framework Modules] B2OJustin:
Unfortunately I don't think this can be a solution for you. The google voice API is overly simplistic and undocumented. As far as I know It doesn't provide any method to retrieve the GV forwarding # associated with a contact. Even if it did, it would require a data connection. The other issue is that GV doesn't associate a forwarding number with a contact until after a text is received.

If something changes in the future to make this possible, then I will certainly consider adding it as a feature. If you have any further questions or ideas on how this might be possible then it's certainly up for discussion :)
[Xposed Framework Modules] bradhoschar:
here's a noob question...

Just updated hangouts to 2.3 along with the new dialer.

I'm running the latest Xvoice+.

My goal is to send an SMS through hangouts and have it show my Google voice number.

I am now getting duplicates. Any way to turn it off? I have 'receive messages through messaging' checked in Google voice.

Screenshot enclosed
[Xposed Framework Modules] B2OJustin:
Those duplicates are texts being forwarded from GV to your carrier number. In GV settings goto your forwarding numbers and disable text forwarding. This module hooks into google voice push notifications.

Keep in mind that after you disable text forwarding you will not receive texts to your GV number unless you have a data connection and the module enabled.

Edit: Also, I'm not all that familiar with the 'receive messages through messaging' setting, but it's unnecessary and may also cause some kind of issues. You can safely keep that set to 'via the google voice app'
[Xposed Framework Modules] Link_of_Hyrule:
Once the flag is enabled on your account you can text using your Google voice number in the new version of hangouts unfortunately because it's a server side flag on a per account basis you have to wait until the roll out gets to you to use it. This also adds texting to the desktop version of hangouts as far as I'm aware. So no more needing to use that crappy Google voice extension or website any more just use hangouts!
[Xposed Framework Modules] bradhoschar:
Ah. good to know. Now, the only problem I have, is when someone calls, Hangouts AND my base number BOTH ring. This is frustrating. I wish Goog wouldn't stage rollouts, and do it in one lump batch
[Xposed Framework Modules] ejchis:
You can either turn off forwarding to that phone in Google Voice web settings or turn off the ring to phone settings in the new Hangouts. I actually hope they keep this option because I want to keep forwarding calls to my phone for any instances when I don't have data, but I have my wifi-only Nexus tablet now receiving both my work and cell calls through those two Voice numbers.
[Xposed Framework Modules] Link_of_Hyrule:
I figure eventually they'll move the call forwarding options over to hangouts and abandon the Google Voice app and website.
[Xposed Framework Modules] NYLimited:
Sorry, could you elaborate on that? I don't yet have the new hangouts so I can't visualize it.. Also, did you upgrade GV to hangouts?

---

* Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
[Xposed Framework Modules] ejchis:
I have not gotten the migration invite yet. Waiting rather impatiently on that.

I have two Google Voice numbers, one is my personal number that I've carried for like fifteen years now. I ported it to Google Voice a couple of years ago. I'm an attorney, and the other number is the one I give out to clients, opposing counsel, etc. I have both numbers set up to forward to my desk phone and to my cell phone. This is pretty simple and allows me to have separate voicemail greetings for separate people without having to set up any filters. It's also convenient because I can shut down work when I want to without having to shut my phone down. Further, my personal number isn't the same area code. I've lived in a few different countries since I first received my personal number, so this number is only really meaningful because it's the number everyone knows. I need a local number for business purposes, and my work GV number provides that.

With the new Hangouts Dialer, you have the option to have calls to your Google Voice numbers ring into Hangouts. If I were to leave this setting on on my phone, it would mean that calls to my personal or work number would ring to my phone and to Hangouts. I have T-Mobile, so I get questionable data service whenever I leave a metropolitan area, and I need my phone to still ring if I'm getting a call, so I unchecked that setting for both GV numbers in Hangouts. So my phone rings, but Hangouts doesn't.

The great new feature with the new Hangouts is that, on my Flo Nexus 7, I can check that setting, and now calls to my personal or work numbers, in addition to ringing on my phones, also ring in Hangouts on my tablet. It essentially turns the tablet into a VOIP using the GV numbers.

I was saying I like having the option in there because it allows me to continue having calls routed to my Nexus 5, even when I have spotty data connectivity, and I can have my tablet function as a VOIP device as well.
[Xposed Framework Modules] NYLimited:
Interesting, thanks. I am in a similar situation though I worry a bit about migrating GV. I suppose there is no way to go back after migration. We shall see. ;)

---

* Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
[Xposed Framework Modules] el_smurfo:
The hangouts integration got pulled back, so it's all xVoice all the time for me
[Xposed Framework Modules] James62370:
How about the new GV app, has anyone tried the latest and advise if this mod can still hook into it?
[Xposed Framework Modules] B2OJustin:
I haven't tested this using the new version but I would be very surprised if it breaks anything. Feel free to try it out, if it doesn't work then I'll release an update later today :)
[Xposed Framework Modules] James62370:
For those curious, the latest Google Voice app 0.4.6.0 still works with latest release candidate.
[Xposed Framework Modules] dagaetch:
can I ask where you heard that? I haven't seen any mention of it...
[Xposed Framework Modules] el_smurfo:
https://plus.google.com/+DroidLife/posts/YAhywZpfXo7
[Xposed Framework Modules] ejchis:
As of this morning, one of my accounts has migrated, and it is working perfectly so far. The other still has not.
[Xposed Framework Modules] crazylilazn:
Problem with sending regular SMS

I'm on T-Mobile with an LG G3. Running stock ROM w/ root.

I've been trying to use XVoice+ over the past couple days, and I've noticed that whenever the Xposed module is enabled (not just the switch in the module, but the actual checkmark inside Xposed), all of my SMS text messages are stuck on sending.

The only way to get them to send is to delete them, disable XVoice+ completely, and then reboot and re-send the message.

I'm running the latest beta.

Edit: Also, prefixes and suffixes aren't showing up with my GV messages.
[Xposed Framework Modules] ejchis:
My second account just received migration, so it's definitely still rolling out.
[Xposed Framework Modules] B2OJustin:
Can you confirm that the sending issue occurs on both v2.4.2 and v2.5RC1?
[Xposed Framework Modules] ejchis:
Now that I'm up and running, I'll be parting ways with Voice+. I do want to say thank you to the developer and the new maintainer of the project. This has been a fantastic utility while Google took their sweet time getting their services up and running. I really appreciate all of the time invested and the contribution to the community. Thank you.
[Xposed Framework Modules] Spark1223:
I am using XVoice + with the new integration and everything is working fine. I'm not sure I like the new integration, due to the fact your texts stop appearing on the GV site (this way I can't check them on some devices with web access). XVoice + still works great and I intend to continue to use it so I can be sure all of my text messages go out as google voice messages.
[Xposed Framework Modules] crazylilazn:
Yup, the sending issue occurs on both.

Although oddly enough, after toggling everything in who-knows-what-order, I was able to get SMS to send without disabling and rebooting.

Then, another time...it stopped working again. No idea what change I made.

Regarding the Prefix/Suffix issue though, I'd really like to figure out what's wrong with that too. No matter what I choose to put, they don't show up in my GV messages.
[Xposed Framework Modules] B2OJustin:
Thanks, I will try to get this resolved in 2.5RC2 within the next few days.

To speed up the process, it would be extremely helpful if you're able to provide a logcat during boot and sending as well as your messaging .apk
[Xposed Framework Modules] bradhoschar:
Fully integraed

Just wanted to let everyone know, that today (9-13), I uninstalled XVoice+, Hangouts, re-downloaded and installed, and I got the option for sending SMS through Hangouts with Google Voice number.

Im in Pittsburgh, so not sure if they rolled it out to everyone, but this is WITHOUT XVoice+ installed.

I loved your app bro!, but it looks the dev's at Google finally fixed it after x years!

Cheers!
[Xposed Framework Modules] zeepzorp:
They stop appearing on the web app? That's stupid. I'll have to check this out.
[Xposed Framework Modules] bradhoschar:
They're showing up for me! On the mobile app, AND on web-side
[Xposed Framework Modules] sabbotage:
They show up in hangouts now instead of the google voice site.
[Xposed Framework Modules] Chahk:
Just wanted to say thanks for the module. I no longer needed since the other day, but it did save me from using the horrible horrible GV app.
[Xposed Framework Modules] needoZ:
I refuse to do the Google Voice/Hangouts integration until forced too. I am not a Hangouts user and prefer to use another client for my "Google Talk" messaging.

Thank you so much for this module. It has been very helpful. I was wondering if there has been any progress in the 160+ character issue where very long messages do not appear.

Thank you.
[Xposed Framework Modules] B2OJustin:
Howdy, the character limit issue, emoji support, and a few other small fixes will be included in the next RC version.
[Xposed Framework Modules] needoZ:
This is great news! Thank you very much.
[Xposed Framework Modules] evotech:
I use the Textsecure app to send SMS via my Google Voice number with XVoice+.

XVoice+ works great for me when I opt out of Hangouts integration, but when I'm opted in, it breaks. I'm sure it's because the Voice API or whatever isn't compatible with Hangouts. Obviously it's not an issue right now, but there will be a time when Google will have everyone integrate with Hangouts, I'm sure. What are the chances XVoice+ can be adapted to work with Hangouts integration?
[Xposed Framework Modules] egingell:
When opted in, Google Voice and its app are not used at all. This mod hooks the GV app, so it can't work. It needs to hook the Hangouts app before it'll work when opted in.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] NYLimited:
In case you are still reading here.. As mentioned in the past, I have a similar setup to yours. I use the GV number to make and get all my business calls. With the old GV app I could set my mobile to always dial out through GV or to ask each time. My dialer app (RocketDial) has a lot of options and eyecandy that the new Hangouts dialer lacks.

My question is how do you make calls through the GV number *without* using the new Hangouts dialer? I had to essentially disable most options in the old GV app and leave it running in my mobile. This way I can continue to use my favourite dialer and the GV number. I did not see any options to accomplish that with Hangouts alone.

Did I miss something?

As noted above the GV app can remain active, if needed. I have both running side by side.
[Xposed Framework Modules] egingell:
I haven't seen a single SMS in Google Voice since switching to Hangouts.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] NYLimited:
If you checked "show SMS in hangouts" in the Hangouts setup (under GV) that would be normal behaviour.

---

* Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.
[Xposed Framework Modules] egingell:
I'm aware of how it works. I was pointing out the fact that opting into using Hangouts replaces Google Voice entirely - as in no more SMS in GV app or on GV website. Which means one would have to change this module to hook the Hangouts app instead of the GV app.

Maybe it's different for me being integrated with Sprint, but that is what I've observed.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Xposed Framework Modules] NYLimited:
Ah, yes, you are correct. I misunderstood your point.

---

* Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime.