The president made clear he resented McCain's thumbs-down vote a year ago that sank the Republican attempt to repeal national health care.
The former President acknowledged the contrast between himself and McCain, saying, "We were standard-bearers of different American political traditions".
As a presidential candidate, Trump mocked McCain for getting captured in Vietnam. "It was a bipartisan rejection of this kind of politics that is inherently grounded in division". Though he was unwelcome and was not mentioned by name, the event stood as an indictment of Trump's rule and the ideals his opponents believe he has crushed. He was honored at a memorial service on Thursday held at the Arizona state Capitol. His loss, and the code by which he lived became a metaphor for something now gone from the nation's civic arena.
He and Trump, both Republicans, had feuded publicly for more than two years. "It's a politics that pretends to be courageous, but in fact is born of fear".
"The very best of this country was represented at John McCain's funeral".
Former President Barack Obama said, "After all, what better way to have a last laugh than to have George and me say nice words about him to a national audience".
Without naming Trump, who did not attend the service, Meghan McCain condemned the president in remarks that at times drew applause and came after she said her dad told her to "show them how tough you are" with her eulogy. John McCain's funeral in Washington, D.C. Saturday morning.
That was the message of two former presidents McCain asked to testify that reconciliation, even amid the knife fight of national politics, is an effort worth making.
Obama said: "We come to celebrate an extraordinary man, a warrior, a statesman, a patriot who embodied so much that is best in America". Obama added, "When all was said and done, we were on the same team".
Some of the tributes, however, had hints of a parting shot at the president and current leader of the GOP.
Among those who served as pallbearers included actor Warren Beatty, Russian dissident Vladimir Kara-Murza, former Vice President Joe Biden, former New York City Mayor Michael Bloomberg, FedEx founder Fred Smith and billionaire investor Ronald Perelman. Trump, meanwhile, left the White House in the presidential motorcade shortly after 10:30 a.m., as the service was underway, headed to his Virginia golf course.
Before the service, Mr McCain's procession will pass the Vietnam Veterans Memorial, where his wife, Cindy, is expected to lay a wreath.
When it comes to McCain's time as a prisoner of war, Bush said he "loved freedom with the passion of a man who knew its absence".
Meghan McCain delivers a eulogy during the funeral service for U.S. Sen. But Obama spoke of a deep respect for the late senator. She is resourceful and confident and secure. America does not boast because she has no need to.
Despite the fact that the Trumps were not invited to John McCain's funeral, First Daughter Ivanka Trump and her husband Jared Kushner were in attendance anyway. She then rested her head on the shoulder of her son Jack.
"Those in political power were not exempt".
Trump was, however, not present at the service in accordance with the wishes of the late lawmaker.
Obama also opened up about his behind-the-scenes relationship McCain and the bond they shared across party lines.